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
-
2
votes3
answers561
viewsProblem with accentuation in email form
I have an email form in PHP that does not send correctly accented words, appear several questions in words with accent, cedilla etc. I tried several things but none worked. Below is the script I’m…
-
2
votes1
answer397
viewsPrevent plugin update in Wordpress
Hello. I need to prevent an update plugin. I thought of simply cloning the plugin and change the following information: /** * Plugin Name: AMP * Description: Add AMP support to your WordPress site.…
-
2
votes2
answers724
viewsPosition the zip code field at the Woocommerce checkout
I need to position the zip code field before the address because I will load the address using the post office api, I can position the other fields, but the "billing_postcode" does not obey the…
-
2
votes1
answer21
viewsCommand init and after_theme_support Wordpress
Could anyone help me understand the functionality of these commands in Wordpress: init and after_theme_support
wordpressasked 5 years, 9 months ago João Vitor Camargo de Alemida 151 -
2
votes1
answer115
viewsHacker attack on the site panel
I installed the Wordfence plugin and every day I get hacker attack report to wp-admin/site dashboard. I decided to change the admin address with the plugin Protect WP-Admin, like this:…
-
2
votes2
answers497
viewsHow to assign target="_Blank" to all external links after ajax has finished loading?
Hello, I have a wordpress blog where I need all external links to be opened in a new tab when clicking. But these links are loaded by ajax and the function I have is executed before ajax finishes…
-
2
votes0
answers317
viewsProblem to the popular select with cities in Wordpress
I am trying to pull registered cities through the selected state. For example: The right thing would be to pull the cities registered in the Wordpress, before I could make it work, but I use the…
-
2
votes0
answers43
viewsHow to migrate a website without losing domain rankings
A client has a rather old site in Wordpress and hired me to make improvements on the site: change theme, content of pages, delete some pages and add new. All these improvements I’m making a…
-
2
votes0
answers187
viewsChange wordpress database Woocommerce
I made a system for the back-end of a wordpress store that uses the Woocommerce plugin. The client requested me to make a login system with custom registration, because well, I made the system with…
-
2
votes2
answers55
viewsexbir text according to the output of the variable field
I’m creating a post type post with Advanced Custom Fields. I would like the text to be displayed on a certain line "Secretariat" when the field the_field('contratante') was in use... when…
-
1
votes1
answer208
viewsHow to catch the grandfather of a term in taxonomy in Wordpress?
How to catch the grandfather of a term in taxonomy in Wordpress? Consider the following tree: -Cidade -Farmacias -farmacia central -farmacia São José I want to take the name of the city from the…
-
1
votes1
answer110
viewsThe qTranslate plugin hides the Homepage menu
On my Wordpress site, I have the theme Designy. When qTranslate option is chosen Hide Content , which is not available for the Selected language, disappears with the home page menu and the slider in…
-
1
votes2
answers345
viewsHow to fix the problems reported with the Blackbox Debug plugin in Wordpress?
I am facing several speed problems on my Wordpress site. Seeking to identify causes, I added the plugin Blackbox Debug that identified 33.1 errors with the theme I use, which is well loaded. I…
-
1
votes1
answer766
viewsError in Wordpress installation with PG4WP plugin on server
I’m using wordpress with the plugin PG4WP to use the postgresql. Localhost everything worked. But when I migrated to the server returns the following error when configuring the wp-config…
-
1
votes2
answers996
viewsCredit System - Wordpress
Does anyone know a plugin or script that works as credits/points? That is to make a download will use X credits, and the user can buy via paypal or something like that. Plugins Visas: Easy Digital…
-
1
votes3
answers1458
viewsShow post_types linked to a taxonomy
How to return all post_type linked to a taxonomy?
-
1
votes1
answer141
viewsWp_query does not work after adding meta_query
I have the following query: // WP_Query arguments $args = array ( 'posts_per_page' => '6', 'post_type' => 'attachment', 'meta_query' => array( array( 'key' => 'galeriaimg', 'value' =>…
-
1
votes1
answer516
viewsInvisible links while not clicking on something or resizing the page
I customized a website, but for some reason, the first time a person visits the site, the menu disappears until someone clicks on something. I can’t figure out why. I found that all page text is…
-
1
votes1
answer853
viewsRemove access to a particular feature in Wordpress
I am trying to limit access in a finished wordpress feature for users in the administrative area. I’ve found several ways to remove the "Posts" menu from the panel menu but I haven’t found a…
-
1
votes1
answer4482
viewsPersonalised registration form
I came across the need to create a page with a "simple" but complex form in its structure (I believe). What I need to do, is that when creating a wordpress post, where the created POST has a unique…
-
1
votes1
answer670
viewsProblems with paging in Wordpress
I’m having a problem showing the pagination on a Wordpress page using WP-Pagenavi. The post_type "pronamic_event" exists on the seat and behind all the query items. I was able to identify that the…
-
1
votes1
answer68
viewswp_schedule_event is not working
I have the following function created in my functions.php. I’m changing the theme to schedule, and I can see that it’s scheduled by the function of next_schedule. add_action( 'after_switch_theme',…
-
1
votes2
answers403
viewsDoubt about Custom Post Type
I made a custom post type for Wordpress, but when showing posts in the category does not work. If I enter the URL example.com/category/mensagem-02/, nothing appears. Can anyone help me? The code I…
-
1
votes1
answer58
viewsHow to detect if a Wordpress article has been loaded into a lightbox?
I am creating a news site, I am using Wordpress as CMS and I am using a plugin Jquery (Magnific Popup) to open the articles in a lightbox. I did the single.php without the headline and without the…
-
1
votes1
answer1228
viewsOriginal site does not accept CSS that on localhost is working
Use the GIT for the versioning of the project under development. I have a form made with the Contact Form 7 and to change his pattern, I changed some classes with css. In the local version it…
-
1
votes2
answers49
viewsWordpress Folder Permissions - 500 Internal Server
My Wordpress was working normally, I was editing the permissions for security reasons. Assigned to all folders inside mine public_html to 755 and assigns to all my files to 644 Well, now just from…
-
1
votes1
answer70
viewsSet post_type search widget
I have a question about how to define the parameter post_type for the Wordpress search widget. The widget is displayed in the page header. I am currently using the following code: echo the_widget(…
-
1
votes1
answer449
viewsUsing Codeigniter within Wordpress
I am working on a blog where within a specific page it has an iframe that points inside the server itself, calling a folder that contains the running Codeigniter. Until a few days everything worked,…
-
1
votes2
answers111
viewsPage with Horizontal Navigation
I am with a challenge to build a site using Bootstrap + Wordpress, however I need my container have horizontal navigation. How do I do it in Bootstrap?
-
1
votes2
answers958
viewsMask wp-admin/wp-login with . htaccess
I’m trying to mask the Wordpress login URL. For example, I was able to do the basics of making the url friendly: ^login /wp-login.php [L] Turns out I don’t want to allow access using the direct URL…
-
1
votes1
answer751
viewsRequest AJAX Wordpress with problems
I am developing a form template within a wordpress theme. I need the form data to be sent via e-mail to a certain address via AJAX. Here is the processing of the form in JS: var FormData =…
-
1
votes4
answers107
viewsHow to use ' inside an array?
I’m facing a problem with an adaptation on functions.php of my theme Wordpress. What happens, I want to put: ':'(' => 'choro.png', Only it’s not possible by the second ' I tried to use: ':\'('…
-
1
votes1
answer1555
viewsReduce Thumbs size of some products in Woocommerce/insert products without shortcode
Has a virtual store that displays the products in the home... products in category A and products in category B. Those in category A are the main ones, those in the secondary category B. So at home…
-
1
votes1
answer2993
viewsHow to loop a custom post type by following the menu_order?
On a static page in wordpress I’m looping a custom post type from a list of services as follows: $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query();…
-
1
votes1
answer533
viewsFilter dates using Wp_query and Post meta in Wordpress
I am developing an event category in my template using the default post, in this post I added two fields (Metabox) for the event start date and end date. Already in Wp_query I need to display the…
-
1
votes1
answer310
viewsHow to restrict access to some Wordpress plugins?
I’m creating a website in Wordpress, but it has some plugins that even though being logged in as autor, the plugins appear in the menu at WP. Is there any plugin for wordpress that allows me to…
-
1
votes2
answers564
viewsHow to remove the "Wordpress" word from the <title> panel?
How can I remove the name "Wordpress" from the titles within the administrative panel? Ex: When you enter the Panel (Dashboard), all pages in the title are named Wordpress, how could I remove that…
wordpressasked 10 years, 3 months ago Alexandre Lopes 2,769 -
1
votes1
answer395
viewsUsing Wordpress to leave site manageable
Work with frontend and now, I want to do some work that I can leave sites that are manageable so that users themselves can feed the content. I have some blogs/ sites in Wordpress and I was thinking…
wordpressasked 10 years, 3 months ago Felipe Viero Goulart 3,693 -
1
votes3
answers405
viewsPick up last Wordpress post on Cakephp
When loading: define('WP_USE_THEMES', false); require(ROOT.'\blog\wp-blog-header.php'); I’m having the following mistake: Fatal error: Cannot redeclare __() How can I upload the latest blog post to…
-
1
votes1
answer159
viewsTrade ids by include in gallery shortcode in Wordpress
I am using Postgre and when creating image galleries the shortcode is generated automatically like this: [gallery ids="1,2,3,4,5"]. But this database does not accept 'ids', I must put 'include', so:…
-
1
votes1
answer1650
viewsPage pagination Category.php in Wordpress
I am trying to activate Wordpress pagination in a theme’s Category.php file, but the pagination links do not appear. From the little I researched, it would have something to do with the use of…
wordpressasked 10 years, 3 months ago Giancarlo Silva 197 -
1
votes2
answers798
viewsHow to Query Wordpress
I need to get the ID of the last post of a post_type, but I have no idea how to do this in wordpress. I’ve tried to mysql_query() but I couldn’t. $consulta = mysql_fetch_array(mysql_query("SELECT *…
-
1
votes1
answer80
viewsURL with two taxonomies
I have the following problem.. I have two different taxonomies "Category" standards that are for example: culture, sport, politics. And a custom taxonomy that is "cat_specials" e.g. "infographics,…
-
1
votes3
answers281
viewsHow to remove a word created by a plugin from the site
We use Wordpress and Woocommerce on our site and to calculate shipping we use the plugin Postcode Shipping. Our freight has 3 values (large São Paulo, interior of SP and neighboring cities) and is…
-
1
votes0
answers224
viewsHow to show the number of views on a page
I own the page www.neilgaiman.com.br, which was developed with Wordpress. I wonder if there is the possibility to show the user, the amount of views that the page he is, has. I ask here because I do…
-
1
votes1
answer9573
viewsHow to display recent Wordpress posts on a page
I found a way to display the Wordpress articles with the following code. <ul> <?php $recent = new WP_Query("cat=3&showposts=5"); while($recent->have_posts()) :…
-
1
votes1
answer166
viewsPosts on page specifies Wordpress
I am working with wordpress and am customizing the index keeping the top and footer: <?php get_header(); ?> <?php get_footer(); ?> only that when I go into the settings and point out the…
-
1
votes4
answers14935
viewsHow to solve image upload problems in Wordpress?
After migrating to Kinghost, I’m having trouble uploading images to the Wordpress library. I normally upload the image but it seems that it does not enter the library, it is as if it had been…
-
1
votes1
answer129
viewsHow to add Midia in Wordpress Library programmatically?
Consider the situation where hundreds of files .jpg are already available in the directory wp-content/uploads/2014/09 by default and we need them to appear in the Media Library…
-
1
votes2
answers470
viewsHow to run PHP Data Import code for Wordpress site?
I have an example code to create a Post of a specific type (product from WooCommerce) and would like to use it to make a routine import of many products. <?php function createNewProduct() {…