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
votes1
answer46
viewsHow to replace image code in posts?
When inserting an image by the "Add Media" button, WP generates an HTML code, such as: <a href="http://host/linkdaIMG"><img src="http://img.cdn.net/papel.jpg" alt="image_name" width="800"…
wordpressasked 8 years, 4 months ago Weslley Ribeiro 21 -
2
votes0
answers21
viewsChange Tittle Section
Good evening, I need help to get a text to follow the title of the page. Here it should show "test" instead of "blog"…
-
2
votes1
answer79
viewsHTTPS in wordpress
I bought a certificate and passed my http url to https in wordpress. I used the following ways: Go to "Settings" of your Wordpress, in "General" change the "Address Wordpress (URL)" and "Website…
-
2
votes0
answers839
viewsWhat are the advantages and disadvantages of using Wordpress and making from scratch?
In college, some colleagues and I are thinking about developing a project that will eventually turn into something big, so it was mentioned using the Wordpress. More specifically, what’s the…
-
2
votes1
answer545
viewsSimulate automatic typing
Practical example of website you use on the home page: https://www.99freelas.com.br/ In short, it is a phrase that completes itself in several ways, created the possibility of saying several things…
-
2
votes1
answer143
viewsHow to create and show a condition through a variable in the cart?
Next, I have a problem to solve in my e-commerce, one of these problems I will explain below: I need to create the following condition: Today my e-commerce has a variable that is applied to each…
-
2
votes1
answer173
viewsGraph facebook with comment counter no longer works
I created a function in PHP that added up the number of comments made on facebook and wordpress to show in each post, but I think because of the updates of the plugins facebook, the code no longer…
-
2
votes1
answer81
viewsHow to change . htaccess Wordpress via FTP
I need to make changes in the . htacces of my wordpress, but I think the file I found is not the correct one. Someone knows where the . htaccess which alter the wordpress pages ?
-
2
votes1
answer179
viewsChange meta robots WP
Colleagues. I took a project of which was developed in WP. Unfortunately I do not know touch in WP, but I would like to change the line: <meta name='robots' content='noindex,nofollow' />…
-
2
votes0
answers52
viewsUpload thumbnail post type frontend via AJAX
I have a professional registration form, where the same register entering name and image (photo). This registration without the use of Ajax, I can do, but it must be done in Ajax, and the image I…
-
2
votes3
answers655
viewsHow to manipulate part of the href attribute of a link using Javascript in Wordpress?
It is possible to manipulate only a part of the URL using DOM or something like? I would like to remove '#' in the middle of the url, in the href attribute. The code will be added in a Wordpress…
-
2
votes1
answer275
viewsPerformance of file_get_contents()
I’m taking the content of an RSS Feed generated by Wordpress, and the same has brought the information with a little delay (according to Google Pagespeed Insights, is having a delay of 1 to 2.5s). I…
-
2
votes1
answer938
viewsWordpress redirecting home to localhost
I installed wordpress on my localhost for testing, then I tried to migrate to a domain, made the changes in siteurl and home and also updated the links of the posts I had, everything is working…
wordpressasked 7 years, 8 months ago Wagner Soares 541 -
2
votes2
answers359
viewsCapture visitor IP on a Wordpress site in.txt file
I am trying to register the IP, Referrer and date of connection of all visitors to my Wordpress site in a.txt file, but I am not being successful. I tried with the Plugin 'Webrtc IP Grabber &…
-
2
votes2
answers1177
viewsCode to Leverage Browser Cache Leaves the Site Offline
Well, I’m having a problem getting the blessed "Enjoy Browser Cache" out of Pagespeed Insights. The site I’m doing this for is Wordpress. The entire internet indicates the same code to be inserted…
-
2
votes1
answer61
viewsWordpress, Multisite second site post also appear on main site
I have a question on the multisites issue of wordpress... I need the posts made on site2 to be seen also on site1, but not the opposite... Is there such a native possibility? Is there any plugin to…
-
2
votes2
answers3123
viewsInserting a page from one site into another
I have a site developed in a CMS and on a certain page of this site, I need to insert another page that was developed without the help of CMS. To be more precise, this page that I am trying to…
-
2
votes1
answer52
viewsMicrosoft Azure - php
How to make Microsoft Azure capture my errors? I am currently dealing with errors with this function: <?php /** Plugin Name: TESTE Description: testando log novo Version: 1.0 Author: Vteste…
php wordpress windows-azure wordpress-plugin application-insightsasked 7 years, 5 months ago Kaue Alves 303 -
2
votes1
answer4383
viewsHighlighted image Wordpress
Hello! I am with the following problem, I am building a theme and the page where the posts are added is not the index.php, for the posts to appear I had to put <?php query_posts(''); ?> in the…
-
2
votes1
answer691
viewsList current category/subcategory subcategories and posts
In my file category.php I have a layout where I have a side menu where the subcategorias of categoria current and a <section></section> where the current posts should be displayed…
-
2
votes3
answers274
viewsAdd javascript to Wordpress plugin
I registered my Javascript file in my plugin but the functions of click and etc. do not work. I registered my main plugin file with the action: function add_scripts_to_plugin() { wp_enqueue_script(…
-
2
votes1
answer118
viewswordpress add_rewrite_rule with custom field
How do I create a URL in Wordpress, using the add_rewrite_rule, same below but filtering posts by a custom field? function custom_rewrite_basic() { add_rewrite_rule('^leaf/([0-9]+)/?',…
-
2
votes1
answer70
viewsDate going wrong
I saw similar questions, but none with answer, my date is coming so from the bank 2017-05-05T00:00:00+00:00 when I try to make a date(’d-m-Y',strtotime($data)); it comes so 04-05-2017, has it come…
-
2
votes1
answer239
viewsCreate and query Wp
Is it possible to create a table in the Wp database to enter values and change them, or would it block me? I wanted to create a simple table only to validate, insert a number and if necessary to…
-
2
votes1
answer25
views -
2
votes2
answers15217
viewsHow to find the file directory by "inspect element"
I would like to know in which file ( or directory ) is the file of the specific element of an inspected web page. Important: it would be a wordpress php file, not css.
-
2
votes1
answer834
viewsHow do I display a message/alert on first access to the site?
I would like to create a "Newsletter" that displays on the first and from time to time when accessing the site. I already have it created, but, I can’t find the functions and tags that help me.…
-
2
votes1
answer35
viewsHow to modify the list in wordpress code?
Good afternoon, I have a problem in the development. I want to know how I modify the menu I am doing. In the function.php is the following code: <?php //menu function register_my_menus() {…
-
2
votes3
answers76
viewsWordpress on Localhost
I own a Wordpress site online, and I need to put this site on my local machine. I have an environment with Wampserver. How can I move this site to my local machine? Just copying the files and…
-
2
votes2
answers59
viewsInsert string with strtoupper
Good morning! I’m using a code in WP to display musical notes. It basically takes the text from a "Chord" shortcode and displays in the line above. It also converts b (lowercase) to . Example: The…
-
2
votes1
answer98
viewsWoocomerce (wordpress) charges digital product shipping/download
I have a store of digital products (ebooks for download), where the customer after payment receives the release to download the product, until then everything OK. Today I registered 4 products…
-
2
votes1
answer323
viewsWampserver does not install Wordpress
I installed Wampserver on my Windows 10, only localhost didn’t work because of IIS Windows, so I set up Apache to use localhost:8080. So far so good, I can access the local installation of my…
-
2
votes2
answers260
viewsHow to disable directory listing in Wordpress
Good afternoon everyone, I would like my directory listing not to be exposed, I used the following code within the .htaccess Options -Indexes, but when I test the code by renaming the index php. he…
-
2
votes0
answers60
viewsForeach with Orderby by the Order field
I’m trying to order by a foreach by the order of the categories but it won’t! <ul class="categories-legend"> <?php $args = array( 'order' => 'DESC' //this is the default as well );…
wordpressasked 6 years, 10 months ago Leander Costa 51 -
2
votes1
answer63
viewsAdd Wordpress Filter
Galera I’m wanting to add a wordpress filter in the posting area : And I wanted only posts to appear that this function was applied : function ag_display_custom_meta_box( $post ) { wp_nonce_field(…
-
2
votes0
answers66
viewsWeb Developer: Evolution Advice: Next Step?
Good morning to all, I need your advice and your experience to evolve your career. I have been a Web Developer for 2/3 years. I have always worked on doing everything from scratch, working with…
-
2
votes0
answers30
viewsNew Wordpress Menu
Good morning. I created a new table in the wordpress database called wp_newsletter, where save only the email that the user puts when browsing the site. I was wondering if you could create a new…
-
2
votes1
answer493
viewsEnable "highlighted image" on specific Wordpress pages
I used the following command to enable "highlighted images" in my site posts in Wordpress: // HABILITANDO IMAGENS DESTACADAS EM POSTS add_theme_support('post-thumbnails', array('post')); How to…
wordpressasked 6 years, 8 months ago user99005 -
2
votes1
answer213
viewsVariable by URL on all page links
I am using the following code to pass variables through the URL, in wordpress. if (isset($_GET['layout'])) { $layout = $_GET['layout']; } else { $layout = '1'; } With $layout I recover the value in…
-
2
votes1
answer425
viewsAjax filter in wordpress
Hello, I wonder if anyone has done any functionality like this site, http://www.todeschinisa.com.br/pt/onde-encontrar filtering the posts using a form and ajax so you don’t need to give the page the…
ajax wordpress twitter-bootstrap filter custom-post-typesasked 6 years, 8 months ago Patrick de Freitas 59 -
2
votes1
answer40
viewsHow to get all posts from Wordpress REST API?
per_page returns posts in the range from 1 to 100, but needed to return 500. How to get all posts from the Wordpress REST API?
-
2
votes1
answer43
viewsBody selector does not work in wordpress jquery, only '*'
I’m making a site using wordpress and bootstrap. I initially made the site in php and converted to a wordpress theme. I don’t know what happens with jquery selectors, they work in pure php, but not…
-
2
votes1
answer72
views -
2
votes0
answers28
viewsAbout Wordpress - Post articles via API or
Hello, I have 5 sites in Wordpress.com, and would like to develop a way to send articles without having to login to each one... What ways do you have to do this? Is it via API? That’s it right…
-
2
votes1
answer55
viewsGenerate random number and add Class on the body of the Wordpress login page
I’m having a problem that at first is simple, but I have no idea what I’m doing to eradicate. function and simple, I want to add a class inside Body in the Wordpress login page, I can do this, but I…
-
2
votes2
answers112
viewsRegistration wordpress letter uppercase
How do I prevent customers from registering in wordpress with uppercase email? Some function without plugin?
-
2
votes1
answer32
viewsB.D error with application doors closed
I have an e-commerce and is staying at Configr and we never had problems with it. This week the site started to get overloaded, even without traffic or anything, coming down several times. The…
-
2
votes1
answer76
viewsHow to change the background of wordpress posts and leave each one with a different color?
Hello, I’m having a problem. I’m trying to make each post have a different background color. I tried using this code below in css but it leaves all posts one color. div.postagem >…
-
2
votes1
answer41
viewsWordpress: multiple queries
I am making queries to search posts according to different parameters of custom fields, but I would like the result of the 3 queries to be displayed together. function query() { foreach ($values1 as…
-
2
votes1
answer726
viewsHow to add Billing fields on Woocommerce’s Edit-Account page! (Wordpress)
Guys how can I add fields that are already default from Woocommerce on my account page? I tried this: but does not object to the expected outcome. add_action( 'woocommerce_edit_account_form',…