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
-
0
votes2
answers295
viewswp_pagenavi does not work in Category.php
I downloaded and installed the wp_pagenavi Plugin I put at the end of my code, it appears only not page, clicking, be in 2... 3... it does not page, always repeats the items 1 to 10. Code <?php…
-
0
votes1
answer454
viewsHow to format Json code in HTML?
Good afternoon, you guys. I need some help. I’m using the API: JSON Wordpress API and it releases . content that returns the post’s HTML code. How to take this json that contains HTML code and…
-
0
votes1
answer363
viewsOpen POST in php file
By default know that I can list some wordpress articles on an external page in php using a "require('.. /.. /wp-blog-header.php');". But by clicking on one of these articles it goes to the default…
-
0
votes0
answers58
viewsHow to create new fields in Wordpress database?
I am developing a system style Infojobs, Catho and CEVIU in Wordpress, based on a Theme already created for this purpose. For a user to register on the site, by default of the theme, he has to…
-
0
votes1
answer518
views$_SERVER['REQUEST_METHOD'] == "POST" Does not work PHP wordpress
I’m trying to detect a post in a form but I can’t, actually it doesn’t work. <?php /* Template Name: Contato */ get_header(); get_template_part( 'components/header/header', 'text' ); $options =…
-
0
votes1
answer74
viewsI click on Ubmit to send email and he plays me on page 404.php
What happens to you: When I click on the "Send" email button, it throws me to 404.php screen, not entering my function send_contact_form, which is inside Function.php. This function is the one that…
-
0
votes1
answer71
viewsPHP - Get variable values in string
I’m new in Wordpress and PHP and I’m having a little problem rsrs I have a very large string that I get dynamically. This string is actually an array of various values and variables. I would like to…
-
0
votes1
answer22
viewsPage call using Class in Wordpress
I am working on a plugin and created a class to display the option in the side menu and the content of the page related to this plugin, however I do not know how to display the content within it. I…
-
0
votes1
answer142
viewsWordpress - Edit Box Remover
It may seem strange, but I need to find a way to remove the main Wordpress text box.…
wordpressasked 7 years, 11 months ago Bruno Antonio 353 -
0
votes1
answer88
viewsHow to release content in wordpress after X days user registration
I’m developing a member area in Wordpress, and I need to limit access according to the user’s registration date. I already have the registration date and already have the amount of days that the…
-
0
votes1
answer39
viewsHow to take the images that are returning and turn into a gallery?
I’m using a mixture of Wordpress plugin with PHP code to manage to perform a task that is to join all the images of a particular post in a gallery. I would like, in this code below, to know how I…
-
0
votes2
answers921
viewsLoop of the Wordpress category
I’m trying to make a loop just the category I’m in Wordpress and I’m not getting. Somebody give me a light? I’m trying to file Archive.php of the theme. obs. Should display only posts in the open…
-
0
votes2
answers597
viewsInsert buttons to share posts in Wordpress
I need to insert buttons in the footers of the posts so that it is shared by social networks and Whatsapp, I have installed several plugins but not met my need, or there is a way to use the links…
-
0
votes0
answers30
viewsProblem with Archive - Wordpress
all right? I’m using a premium template called Beta Design. But in the blog, the Archive sidebar doesn’t work. That is, if I click to filter by month/year, it does not filter... Anybody want to…
-
0
votes1
answer354
viewsWordpress Insert Featured Image wp_insert_post
Hello I’m with this code below that inserts a post in Wordpress. In addition to the title, I would like to insert a highlighted image someone knows how to do this ? Follow the code below I’m using:…
-
0
votes1
answer459
viewsGet custom Category from a custom post type
I created a custom post type, and a taxonomy with the CTP UI plugin, but when it comes to listing in the loop the categories that are marked in the posts are not listed. <?php $args = array(…
-
0
votes1
answer429
viewsView wordpress posts by category
Use the code below to display posts from the ID 1, however, instead of using the ID category, I would like to use the Slug EX: cat=news <?php query_posts('cat=1'); while ( have_posts() ) :…
-
0
votes2
answers116
viewsTake values from a post form and forward to an html table
I am layman in PHP and JSON, I have this code below that is working. It brings the values of a form, but all in the same PHP tag, I would like to separate and put in an organized table, for example:…
-
0
votes1
answer55
viewsProblem with accents when inserting a personified field in the wordpress panel
Hello friends when I put there "Hemerson Assuncao" sends more when I put with acetos type Assunção does not send example add_post_meta($id, 'full name','Hemerson Assunção'); Someone of that force…
-
0
votes1
answer591
viewsPage attribute, template, in a wordpress "project"
I have a site in Wordpress, of which some pages I use instead of the wordpress editor, file .php with a Template Name, in such a way I point out in wordpress the template, located in the page…
-
0
votes1
answer299
viewsWordpress Function Enqueue - I can’t add Jquery to the theme
I am trying to add jquery in the theme, all css and js I put in Function are added in the code normally, but jquery that is in the directory of my theme is not being added. The file exists in the…
-
0
votes1
answer306
viewsProblems with modal bootstrap
I am creating a page to generate coupon code and I am using the modal of bootstrap to open a modal with the coupon data, but when clicking one of the buttons opens all at the same time, how can I…
-
0
votes0
answers310
viewswp-admin does not load scripts
The client installed SSL on their site and after that some things didn’t work anymore, such as images, scripts, css. Then I installed the Insecure Content SSL plugin and fixed it. However wp-admin…
-
0
votes0
answers149
viewsChange Previous and Next text in pagination links
I set in functions.php the parameters of the pagination and gave an echo where I want the links to appear, so far so good. The problem is that the texts of Previous and next are not modifying. I put…
-
0
votes0
answers336
viewsWordpress - Paging does not work in taxonomy
I have a custom post type "news" and a taxonomy "subject" that has its terms, to make the pagination I am using the following code (page-news.php): $custom_query_args['paged'] = get_query_var(…
-
0
votes0
answers31
viewsHow to create a new field in the post using "meta_input" (Wordpress)
I’m trying to create a new field in all posts with post_type noo_company, using the meta_input, only that it’s not working. Not registering or saving the values of the field in the database, could…
-
0
votes1
answer150
viewsQuery is returning an empty array (Mysql/Wordpress)
How do I get the field values meta_value = candidate of this table. I’m using this query, but it’s returning an empty array. $resultados2 = $wpdb->get_results( "SELECT * FROM $wpdb->usermeta…
-
0
votes1
answer1540
viewsCollect Wordpress category name
I am trying to collect the category name with the following code <a href="<?php get_cat_name( $cat_id ); ?>"></a> But I’m not having much success. Another thing is, I have about 4…
-
0
votes1
answer994
viewsError when installing theme in Wordpress
To using wordpress locally with Easyphp, when I try to install a theme, plugin or update is displayed the following error message: Download failed. No Working Transports found
wordpressasked 7 years, 9 months ago blackbird312 417 -
0
votes0
answers136
viewsArchive . htaccess being rewritten in Wordpress
The site has been presenting the error for some time: Your PHP installation appears to be Missing the Mysql Extension which is required by Wordpress. I checked with the hosting server and we noticed…
-
0
votes1
answer964
viewsShortcodes do not work in my wordpress theme
I’m creating my theme and it’s okay, But I installed a plugin and it doesn’t work properly when added shortcodes to the theme. On the page it looks like in the console the html tags of the plugin,…
-
0
votes1
answer89
viewsImport Wordpress bank
Good afternoon, there is a way to import a database from a website that was not made in Wordpress for a new site made in Wordpress?
wordpressasked 7 years, 9 months ago Jadson Rodrigo 1 -
0
votes0
answers463
viewsHomepage wordpress site does not appear in the list of pages
I’m using a wordpress theme but when access all pages, only the page appears about, a home(home page), does not appear in the list. someone knows how to fix this?…
wordpressasked 7 years, 9 months ago blackbird312 417 -
0
votes1
answer476
viewsHow to return a Category ID in Wordpress?
I need to return the ID within this function: $field = odin_get_term_meta( CATEGORY ID HERE, 'cattitulo' ); I tried it with get_term_meta() and get_terms() and nothing. I imagine it’s pretty simple,…
-
0
votes0
answers175
viewsHow to loop inside the foreach
I’m having a hard time getting the code to run. I have the variable $posts_metas which may be empty or have an array, depending on what the user has already registered in DB. I also have the…
-
0
votes2
answers399
viewsWhile on dynamic carousel
I am trying to display the images in the Bootstrap Carrousel with while. I can access the array with all urls, but I’m not able to insert the img tag in while, I tried while with foreach to display…
-
0
votes2
answers450
viewsError in uploading Wordpress themes
I am trying to upload a wordpress theme whose size is 40MB. Whenever I try to upload, the file loads all and at the end appears the error: "413 Request Entity Too Large". How do I resolve the…
-
0
votes1
answer1564
viewsHow to export settings of a Wordpress theme?
I have a Wordpress site and need to migrate to another server. I was able to export the content and import in the new environment. However, the theme used has been modified a lot. Many settings have…
-
0
votes1
answer119
viewsSearch using query_args() in wordpress
I am using the following query: $args = array( 'post_type' => 'post', 'meta_query' => array( array( 'key' => 'site_name', 'value' => $busca, 'compare' => 'LIKE' ), ), );…
-
0
votes2
answers302
viewsHow to query more than one table (Wordpress)
How do I perform a QUERY in the database in 5 different tables and return the values I want, example: I am performing a search system (my first) and need to capture the following values: Candidate…
-
0
votes0
answers191
viewsHow to debug a Mysql query?
Is there any way to know what’s wrong with this QUERY? When you perform a query, it displays it on the screen but nothing appears, the var_dump returns NULL, what steps a professional takes to know…
-
0
votes2
answers3102
viewsCustomizing Send File Contact Form 7 wordpress button
I have a form in contact form 7, wordpress, I need to change the button attach aquivos, today it is like this: I need the buttons to stay like this: I’ve tried everything and nothing!! If anyone…
-
0
votes1
answer43
viewsTranslating wordpress plugin
I’m trying to translate a sentence in the UT Portfolio Plugin, I went in the file folder and there’s only one file. txt warning that the translation should be done Pleo plugin codestyling…
-
0
votes0
answers129
viewsWordpress search result display on index
Fala galera, I entered the search in my index see the code <?php get_search_form(); ?> How do I get the search to return the result in the index itself? in case the visitor will type there in…
-
0
votes0
answers132
viewsList products that contain wordpress delivery class
Hello folks very good evening to everyone I am novice in wordpress and I’m having a hard time listing products in which contain a delivery class to them. For example: I have a page where only…
-
0
votes0
answers157
viewsWhite screen in wordpress login
While trying to login on my wordpress site the screen gets all white, I searched the net and tested some possible solutions: I increased the memory for wordpress ( that was not the problem) I…
-
0
votes1
answer184
viewsRandom image gallery when opening the page (wp)
I need to place a gallery of specific images on a page and have their order change each time you open the page (or update). The site is in Wordpress, and found no plugin, or even code for it.
-
0
votes1
answer595
viewsHow to use $wpdb variable in wordpress
I have this code in a php file inside the wordpress installation, does not work I do not know what is wrong. global $wpdb; $tableName = "wp_posts"; $result = $wpdb->get_results("SELECT * FROM…
-
0
votes0
answers86
viewsImage of all category in wordpress post
I have some categories and in those categories I have images. Let’s say I have the post1 and in that post1 have the cat1, cat2, cat3. When I enter the post in mode "single_post" is displayed only…
-
0
votes0
answers133
viewsError importing Wordpress database database
I’m having trouble importing the Wordpress database. On my local physical server, with Ubuntu server 16.04 is running, but when I played on my Ubuntu 16.04 desktop, it does not work. The procedures…