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
-
1
votes1
answer292
viewsHow to make a conditional loop in Wordpress depending on the category?
I need to formulate this code to respond to the requirements of a specific category where within it the posts will be presented randomly. For that I made this code on category.php of the template…
-
1
votes1
answer228
viewsHow to set up Nginx for nodejs and php?
I’m here trying to set up a basic server at digitalocean, where I wanted when accessing meudominio.com it redirect to the program in nodejs+express running at port 3000 and accessing…
-
1
votes1
answer186
viewsupdate_post_meta/add_post_meta de Inputs dinamicos
I have the following problem, I have a shortcode that is a form, and inside this form have inputs that were created dynamically by the programmer himself through a function, but I have no idea how I…
-
1
votes2
answers250
viewsRedirecting of permalinks
I have a site developed in Wordpress, and the main structure is: www.teste.com.br/titulo-do-post only, I’ll have to modify to: www.teste.com.br/categoria-do-post/titulo-do-post All the links I…
wordpressasked 10 years, 1 month ago Felipe Viero Goulart 3,693 -
1
votes2
answers84
viewsHow to insert a REQUIRE in this function?
How do I insert a require in this Wordpress function for menu in administration? add_action('admin_menu', function() { # $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url…
-
1
votes1
answer46
viewsPlacing explanatory boxes within the Wordpress administration?
I would like to help the system users by placing a box with explanatory text within each part of the administration of Wordpress, for example in posts, pages and even in custom post types. Does…
wordpressasked 10 years ago Marcos Vinicius 7,188 -
1
votes1
answer836
viewsRegistration of users in Wordpress with custom form
I have a user registration form inside my shortcode. Complete code <?php $user_login_RU = $_POST['username_RU']; $user_email_RU= $_POST['email_RU']; if(isset($user_login_RU, $user_email_RU)){…
-
1
votes1
answer461
viewsError in CSS of Wordpress plugins
I am with the following problem, my theme in Wordpress does not recognize the CSS of plugins installed in the internal pages, on home works normally, but on other pages, no plugin I install…
-
1
votes1
answer172
viewsListing daughters of a particular Page
I’m not getting to list the daughters from the menu Institutions that is a Page. Institutions - Policia Militar - Prefecture - Secretariats <li><a href="#">Instituições</a>…
-
1
votes1
answer61
viewsProblem with Slider
When you load the page of that website the title of the description of the slider appears at the top and then descends. How to solve? The site is in Wordpress. Plugin Huge IT Slider I think maybe…
-
1
votes3
answers2723
viewsDomain without www does not work
At the root of the server I have a folder "wp" where I have Wordpress installed. I put inside the folder because the site was not made with Wordpress and yes the blog. When typing the url…
-
1
votes2
answers1005
viewsInstagram on Wordpress without Login (no password usage)
I need to post Instagram on the sidebar of a blog but the user has too many followers and is afraid to lose them and be hacked and so on. I tried to explain, but no way they want to put the password…
-
1
votes1
answer942
viewsError 404 on Friendly Urls in Wordpress Reseller Locaweb Plesk
I use A Revenda de Sites da Locaweb em Plesk, and I’m climbing a site made in Wordpress. Permanent links do not work. The site only works in the default settings of Links www.endereco.com.br/?p=123.…
-
1
votes1
answer81
viewsCheckbox in theme options
I’m creating a options page for my theme in Wordpress, but I am with a certain difficulty related to checkbox. The idea is as follows: If the checkbox infra_bloco1_visivel is marked it will enable a…
-
1
votes1
answer493
viewsWhy does my Taxonomy in Wordpress not work on a hierarchical level?
My problem is the following, record a custom post type and a custom taxonomy for the same, both with hierarchy enabled. Record custom type 'categories' within taxonomy, following the style Father…
-
1
votes1
answer285
viewsHow to use wp_enqueu_style?
How do I get the contact page.php to use the contact.css file using the wp_enqueue_style function in Wordpress? function terradecultivo_scripts() { if (contato.php) { wp_enqueue_style('terra-style',…
wordpressasked 9 years, 11 months ago Sandro Elias Graziosi 623 -
1
votes1
answer454
viewsProblems with wp_mail( ); wordpress function
I developed a plugin for Wordpress, already tested on hostgator, worked correctly. When I put in Digital Ocean, the function wp_mail(); passes as true but does not send any email.…
wordpressasked 9 years, 10 months ago Fernando Santana 71 -
1
votes1
answer1351
viewsERROR syntax error, Unexpected T_VARIABLE
I have a problem and am beginner in PHP, I do not know if it is easy to fix this error. (Parse error: syntax error, Unexpected T_VARIABLE in…
-
1
votes2
answers104
viewsChange Wordpress functionality
How to change this script, so that instead of it grab the image from the Wordpress directory, it grab the first image that exists in the post. The purpose of this script is instead of the theme…
-
1
votes1
answer164
viewsHow the first image of the post shows - Wordpress
I am editing the theme for wordpress http://www.arrastheme.com/ but a problem has arisen. My images are hosted on picasa and linked in the post. The images do not appear in the home or in the…
-
1
votes1
answer100
viewsSQL only in custom Wordpress post for tag conversion
Let’s say a site using Wordpress has half the posts of the default type, and the other half using a Custom Post Type "review" http://codex.wordpress.org/pt-br:Tipos_de_Posts_Personalizados. But this…
-
1
votes1
answer842
viewsHow to add a class to an HTML element with PHP?
I created a side menu using text widget in wordpress <ul style="list-style:none"> <li style="margin-bottom: -15px !important;"><a…
-
1
votes2
answers496
viewsProblem with wordpress paging (returns 404)
I’m doing the index of a site and in it I do a search of the posts, alias several searches, and the last one has pagination that is the last posts registered. I’m doing the consultation as follows:…
wordpressasked 9 years, 7 months ago Angelo V. Merlo 117 -
1
votes1
answer2077
viewsHow to show more posts when you click button?
In the loop I put to show 12 Woocommerce products. <div id="vitrine" class="container-fluid"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 12 ); $loop = new…
-
1
votes0
answers460
viewsHow to import customer registration to Woocommerce?
I moved my online store to Woocomerce. How do I import customer registration from my old store to Woocomerce?
-
1
votes1
answer1181
viewsIdentify Visitor and User in Wordpress
I am working on a wordpress plugin, and I need to change the menu name Login for My account when the user is logged in. I also need to change the title of the page. I have tried using the filter…
-
1
votes1
answer58
viewsHow do I add this expense counter to my Woocommerce theme?
I kind of want it that way, it looks elegant and practical. Anyone who knows how to do it or any other similar way please help. Thank you!…
-
1
votes2
answers90
viewsBootstrap Responsive Wordpress
Good night, you guys. I recently finished this blog: http://bloganacastro.com/ and everything is cool, in the mobile version I just have a little problem. If you visit, you can see that the main…
-
1
votes0
answers180
viewsWordpress home page with differentiated structure
I’m converting a template into HTML made with Bootstrap that will only be used in Home page for the format of Wordpress and would like to include the slideshow. Because of studies, I come here to…
-
1
votes1
answer77
viewsGet last child of a product category
Everybody, good afternoon, everybody. I need to get the last child of a category within a product loop: Categoria -categoria filho --categoria ultimo filho It always gives me the Father, ie…
-
1
votes1
answer531
viewswordpress does not show posts according to tag or category
I am developing a theme for Wordpress, and I get the error 404. I have a post with a certain category, and I can access it normally by your permalink. However when accessing via your categoria or…
-
1
votes1
answer45
viewsStrange characters in message subject, using wp_mail
Good evening, I would like someone to help me in this, I developed wordpress plugin, sends emails perfectly, but when subject contains accent, the subject is displayed strangely, see... The subject…
-
1
votes0
answers161
viewsList of popular posts counting comments from facebook
I’m trying to make a list of 5 items of the most commented posts on my blog, but with the comments on facebook. I replaced all the contents of the file "comments.php" of my WP (twenty Fifteen theme)…
-
1
votes2
answers64
viewsproblem when showing wordpress category
I’m developing a theme for Wordpress my menu is generated as follows in header.php <li><a href="<?php echo get_option('home');?>">Início</a></li> <?php…
-
1
votes1
answer50
viewsCustom update for Wordpress plugins
How do I make updates available (updates) for a Wordpress plugin I developed? Can you do this with Github? Or is it only possible by official directory?…
-
1
votes0
answers105
viewsWordpress does not list posts correctly
I’m having a problem in Wordpress, a client passed a theme for me to install in Wordpress, he bought and passed me, I just played in Wordpress themes folder. What happens is that when you list the…
-
1
votes1
answer1929
viewsHow to show a listing of all posts on any page
I’m wanting to make a list to get the most commented posts, but my problem is that I can’t call the right listing always, here’s the code: <ul> <?php global $query_string;…
-
1
votes0
answers370
viewsHow to put the "old posts" and "recent posts" option in this code?
The maximum posts that appear by the code of my blog are 6, but I would like to put the options of "previous posts" and "recent posts", the way I had managed had been strange because it did not…
-
1
votes1
answer345
viewsMap in SVG in Wordpress
I cannot insert the map(link below) in Wordpress. When I put the code on the page, the states are lined up as attached: Can someone help me? Tks Follow code (I didn’t post integer in the snippet…
-
1
votes2
answers177
viewsTag <code> recognize language (Wordpress)?
I do not understand much of this tag, but wanted to know how to make a scheme of the style of this site in a Wordpress blog, code example: string demo = "StackOverflow"; if(demo.Lenght == 13) { demo…
-
1
votes1
answer118
viewsHow to create a temporary post that automatically deletes after a while
I use the platform Wordpress and so far I haven’t been able to find a plugin that makes it possible to create temporary publications. Does anyone know of any plugin or code that can do this?…
-
1
votes0
answers316
viewsBootstrap Navbar Background-Image
I’ve tried everything here in the code and there’s no way, I can’t do the navbar bootstrap have the image. The most bizarre is that in Safari it appears, in Chrome it does not. Follows the code:…
-
1
votes1
answer390
viewsCustom Post Type with 404 error
I have a sub page listing some Custom Posts. The sub page opens normally and lists the custom posts, but when I click to open the post gives page not found. Registration of the Custom Post:…
wordpressasked 9 years, 6 months ago Marcelo Almeida 17 -
1
votes1
answer434
viewsCalling from the 2 post in the wordpress loop
I am making a loop in wordpress using Wp_query and need to list me only from the 2 post, ignore the 1 first post. In the past I used query_posts('offset') to do this, but using wp_query I’m not…
-
1
votes0
answers99
viewsPrevent c# Repeated Posts in Wordpress?
I have the following code, using the Joeblogs Wrapper private static void Postagem(string website) { try { string link = "http://MEU.SITE"; string username = "user_wp"; string password = "senha_wp";…
-
1
votes0
answers322
viewsReceive notification when a facebook comment is made on wordpress
I am creating a wordpress blog and want to make facebook comments made on the post page generate a notification on the page administrator’s facebook page. On an old blog, I used the plugin "Facebook…
-
1
votes1
answer3721
viewsHow to remove redirect loop in Wp?
I’m trying to install wordpress in a domain but am getting an error: This web page has a redirect loop ERR_TOO_MANY_REDIRECTS Does anyone know how I fix this? I’ve searched a lot on google and can’t…
-
1
votes1
answer52
viewsHow to show a thumbnail of a circular wodpress post?
I’m trying to show the image of the post wordpress in rounded shape, what would be the best way? It is returned through the function "the_post_thumbnail()" wordpress. Can someone help me? <?php…
-
1
votes1
answer79
viewsWordpress - change folder to root
I’m about to set up a website on wordpress to a friend’s agency. For now, when accessing the site, we have an html file stating that the site is under construction. But now that we will develop the…
-
1
votes0
answers61
viewsRun controller from an external site
I have the following problem/question: I have the Wordpress installed and the CodeIgniter also. In Codeigniter I have to make a function that add +1 in the database when a category is seen in the…