Most voted "wordpress" questions
Wordpress is a content management system (CMS) written in PHP with Mysql database, aimed primarily at creating websites and blogs. This tag includes questions about modifying themes and plugins, and extending their source code, always observing the scope of the site. Do not use for support questions, installation etc.
Learn more…1,512 questions
Sort by count of
-
3
votes2
answers419
viewsRequest loop in Angularjs 2
I am new to the use of Angularjs and decided to study based on a work project. My problem is this: I am building a base project using Angularjs 2 to consume data from Wordpress (WP) through the REST…
-
3
votes1
answer35
viewsPage in wordpress is being redirected to the site "official wordpress"
I performed the backup of a wordpress site to run locally and perform some tests, but every time I click on visitar o site in the top menu I am redirected to the official website (live). I already…
-
3
votes0
answers65
viewsWP-CLI and Drush in isolated Docker containers
I’m starting to use Docker contêneres to instantiate local development environments, mainly for Wordpress and Drupal. Two tools that I use a lot in my workflow are wp-cli and drush. Following the…
-
3
votes3
answers547
viewswp_enqueue_script does not work
I am creating a theme for Wordpress, however the wp_enqueue_scripts does not work. The code that is in the functions.php is: <?php function scripts_and_styles() { if ( ! is_admin() ) {…
-
3
votes1
answer62
viewsAdd Change Author in Quick Edit Type Post
I created a type post to customize the wordpress admin of a client, everything works perfectly, however the option to change the author of the post in "quick edit" does not appear, I know by default…
-
3
votes2
answers147
viewsSummary of Wordpress Posts
I need the summary size of the posts in my Frontpage to be different from the summary size of the page where all posts are displayed(home.php). In my file functions.php I put the following code:…
-
3
votes1
answer888
viewsHow to apply the_content filter in get_the_content Wordpress function?
I am developing a theme for Wordpress, for hobby and to study a little PHP, Javascript etc. and I am facing a small problem. I’m working with the controller concept where all logic will be processed…
-
3
votes1
answer55
viewsAdd Wordpress user in more than one function
I am developing a plugin for member area in Wordpress and I will control this access through the functions (roles). Suppose I create the functions: content1, content2 and content3. How I could…
-
3
votes2
answers396
viewsRecycle Bin, Draft and Pending Revision in wordpress, how do they work?
Good afternoon, I would like some help from you, I need to take a post off the air, but I would like to reactivate it regardless of the time of passing, if in a year I want to publish it again as I…
-
3
votes1
answer106
viewsLink a JSON parameter to a product in Woocommerce
I have a JSON that returns me a list with some flight data: "programa": "multiplus", "qtdOpcoesIda": 50, "qtdOpcoesVolta": 50, "menorTarifa": { "pontos": 15000, "dinheiro": 767.8 }, "taxaEmbarque":…
-
3
votes1
answer103
viewsHow to resolve html rendering with VUE?
am making a test with the wordpress Rest-api with Vue 2.x, and one of the returned attributes is as follows: "content": { "rendered": "<P>Bem-vindo ao WordPress. Esse é o seu primeiro post.…
-
3
votes1
answer424
viewsCustomize List within Admin Panel - Wordpress
I am in a project, I need to make some changes exactly within the Wordpress panel. More specifically on a page that lists a specific list of posts. I need to add a custom search field with a…
-
3
votes1
answer2927
viewsHow to use 2 Wordpress themes on the same blog?
I have a theme I want to use on the home page and I have another one I want to use for posts. Is it possible to do this? If so, how?
-
3
votes2
answers614
viewsIdentify origin of php code
Guys I know the question may seem simple or something like, but so, sometimes I want to edit something specific on the page made in wordpress, and sometimes I do not know where is the origin of that…
-
3
votes1
answer447
viewsRemove space between menu and content
Hello I have a little problem... Let’s say that between the menu and the page contents are with this huge hole... And I would very much like to remove it... the worst that has nothing in the code to…
-
3
votes1
answer436
views -
3
votes1
answer147
viewsOrganize capabilities and levels of wordpress users (no plugin)
First I’ll explain the scenario, I want to make a system where there will be four different types of people accessing it. The Administrator, "moderators", authors, and partners. I wanted to use the…
-
3
votes1
answer93
viewsI changed the address of the http page to https and now it’s giving error
I switched from http to https the address of this site here http: http://akauasilva.adv.br/ , did this in the wordpress settings area.. And now the site is forwarded to the hostagor error page. What…
-
3
votes1
answer1430
views -
3
votes1
answer202
viewsWp_query, How to sort the meta_query in the order of an array?
I’m developing a system where I have a Deck presentation. I have a field that picks up the post by the suit of the type copas being within the array specification meta_value, and would like it to be…
-
2
votes2
answers3169
viewsWordpress plugin for uploading large files
I’m developing a wordpress blog for a client (who has little experience with computer and internet). In this blog, videos and zips files will be available for download. Thinking that these files can…
-
2
votes1
answer11594
viewsCustomizing individual pages in Wordpress
Wordpress offers the option to customize the Live Themes via the Customize button. However, I would like to have this same live option to customize the pages individually, without having to be equal…
-
2
votes2
answers236
viewsHow can I adjust the height in a Wysiwyg box
I need to use Custom Post Types and learned how to do in this article. There is one however, this article does not teach how to insert Custom Post Types into Pages or how to leave the…
-
2
votes1
answer128
viewsHow to specify the enctype of a Gravity form?
I am using Wordpress with Gravity Forms. I have a form that I am using to submit data to a third party website. The detail, this site is waiting for the data to be sent in the form…
-
2
votes1
answer82
viewsCustomer login with credentials to access news
Explanation: I have a customer registration in post_type through metaboxes, where there are the fields email and password, and the client’s name is the_title(); Goal: I need to log in with the…
-
2
votes2
answers583
viewsHow to save Metabox checkbox with multiple values
I have a loop where it shows the taxonomies of the groups in the format of checkbox, but when he saves, he saves only the last checkbox marked. I would like to know how to save all fields checked?…
-
2
votes3
answers290
viewsUnmark a category x of all wordpress posts
Is there a method to deselect a category "x" of all wordpress posts, without needing to enter one post at a time and deselect the category?
wordpressasked 10 years, 10 months ago Leandro Costa 2,172 -
2
votes2
answers2370
viewsIntegrate a jQuery plugin to a Wordpress theme
I’m using the Nivo Slider on my site from the basic example offered by the plugin. No file header.php of Theme I put the scripts and the <div> with the images pointing to a directory of Theme.…
-
2
votes2
answers179
viewsError in using glob function with wordpress
I am trying to recover images from a folder with native php function glob, only one is returning array emptiness. I’m passing the full path from folder to function. Follows code: $pasta =…
-
2
votes1
answer672
viewsError 404 (Not Found) on Facebook
I have a problem sharing links from a site on facebook because, the links are right and appears the following message from the site when sharing: Error 404 (Not Found)!! The site is in wordpress and…
-
2
votes1
answer325
viewsCreate menus in Wordpress Dashboard
I need to create custom menus for a Wordpress theme and I came to this function that works in parts, because the part of "TITLE" and fields of "TEXTS" or "SIDERBARS", can tell me where I’m going…
wordpressasked 10 years, 10 months ago Bruno Martins 197 -
2
votes2
answers1383
viewsHow to modify a wordpress plugin’s menu title?
I have a problem modifying the title of my plugin in the menu, I need the main title to be different from the second title, but I’m not getting. As in the image: My Code: public function menu(){…
-
2
votes1
answer4782
viewsHow to calculate freight by zip code in Woocommerce?
I wonder if it is possible to have a freight value for each zip code in Woocommerce or only a fixed price is possible.
wordpressasked 10 years, 10 months ago luckakashi 314 -
2
votes2
answers239
viewsReturning Value Inside Wordpress Post Type
I need to return values to be displayed in the columns of the post type, but I’m not able to return anything, as should be done? Code: add_action( 'init', 'create_eventcategory_taxonomy', 0);…
-
2
votes1
answer377
viewsImage problem in Advanced Custom Fields plugin
I am using Advanced Custom Fields in a job and created the following field and inserted out of the loop the code: <?php the_field('jogador_1'); ?> and is returning me the following error: 15,…
-
2
votes1
answer648
viewsHow to send an email confirmation to the registered user through Wordpress?
I have this registration routine and need to send an email confirmation when the user registers, how can I do? // SETUP NEW USER $data = array( 'display_name' => esc_attr($_POST['display_name']),…
-
2
votes1
answer123
viewsSlider with jQuery on Wordpress is not running on IE
I am producing my website, in Chrome everything is ok as always, but in IE Slider is not running and do not know what to do. I am using CSS3, jQuery Easing v1.3 and jQuery 1.11.0. I found the code…
-
2
votes1
answer158
viewsCheckbox that pulls content from a custom post type
I have a custom post type knits (here will be registered all knitwear products) and have another custom post type products (where will be listed all products). What I would like to do: in this…
-
2
votes3
answers621
viewsService to resize uploaded images to a Wordpress site
I have a Wordpress site which has the biggest headache to resize images, and I think a PHP script that resizes images is not the solution for me. Every post involves about 3 images, it is very…
-
2
votes1
answer1714
viewsWordpress with friendly URL - Apache error - How to resolve?
I’m having problems with Wordpress with friendly URL. It just doesn’t work even using the file . htaccess suggested by Wordpress support site. cat .htaccess # BEGIN WordPress <IfModule…
-
2
votes1
answer777
viewsbbPress official translation into Portuguese
I couldn’t find any official bbPress download for the Portuguese language. I found in Google all kind of suggestion but I believe it is for old versions of bbPress plugin. Already installed and is…
-
2
votes1
answer169
viewsDisplay only comments made on author posts in Wordpress
By default Wordpress shows for all accounts all the comments the site has already received. I wish that when I logged in as Autor only showed comments made on posts from Autor. Behold: The comments…
wordpressasked 10 years, 6 months ago Alexandre Lopes 2,769 -
2
votes1
answer203
viewsCustom Field no Woocommerce returns result
I’m having a problem with Woocommerce. I added a field that does not have in the standard of Woocommerce that would add the amount of products that go inside the master box of the product. The code…
-
2
votes1
answer107
viewsWordpress: Wrong thumbnail and permalink being displayed
I’m having trouble getting thumbnail (highlighted image) and permalink from the most recent post to be displayed on my blog home. I made the following code: <?php $posts_noticias =…
wordpressasked 10 years, 5 months ago Giancarlo Silva 197 -
2
votes1
answer609
viewsSearch returns only the home of the site
I created the files search.php and searchform.php for a Wordpress theme that I am developing. However when testing the search it does not return anything, showing only the home page. I had written a…
wordpressasked 10 years, 5 months ago Giancarlo Silva 197 -
2
votes1
answer246
viewsIn a Wordpress gallery, use the Alt attribute of the images as html comment
I’m developing a Wordpress theme and I’m having a problem. In my functions.php, I use the following code that changes the composition of [gallery] and so I can customize the gallery of posts. The…
-
2
votes2
answers1218
viewsIntegration with Wordpress authentication
Taking into account a site based on Wordpress and a management system that runs in the same domain, but with totally independent authentication features, I think to integrate the authentication of…
-
2
votes1
answer772
viewsWhat is the best way to make an AJAX request in Wordpress?
When I make an AJAX request in Wordpress I do it in two ways, but I would like to know which is the best. The two I know are: 1º) You put your function in functions, for example:…
-
2
votes2
answers51
viewsRemove filter for pages only
I needed to create a filter to print the name and email of users within posts (the_content) that they create. The problem is that it is showing in the posts and also in the pages, I wanted to show…
-
2
votes2
answers65
viewsDiversify Wordpress posts by Categories
I’m using this code to display the news on the home page of a website, only I wanted to display: 4 news from Cat1 + 3 of Cat2 + 3 of Cat3 <!-- NOTÍCIAS AMB --> <?php if…