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
answer135
viewsCode to identify browser in Wordpress
I need a code that identifies if the browser is Firefox and then runs a code block and otherwise runs another. The code block is HTML5 pure. The code is to be used within Wordpress, so I believe…
-
-1
votes2
answers74
viewsMysql query generating error when using the OR clause
I have the query used in WP and it causes an error when I use OR, follow the example of use: SELECT * FROM ' . $table_ucf . ' WHERE form LIKE "'. $this->form_active.'" AND name LIKE "%s" OR email…
-
-1
votes1
answer73
viewsMy site is giving error in Jquery and do not know what to do
I am new to programming and am developing using jquery and boostrap in wordpress. But when uploading the theme to the server appears this error. Thank you for your attention.…
-
-1
votes1
answer45
viewsHow to display wordpress posts on a home page
Well, I wanted to know what function I use to display all my blog articles in a theme I’m creating, I’ve reviewed the internet and found nothing. would be with a get_posts?
-
-1
votes1
answer71
viewsRegistration and login form in Wordpress with woocomerce
Registration and login form in Wordpress 4.7 with woocomerce 2.6.11 does not work with Bookshelf theme | Books & Media Online Store. Note: The client registration giving access to its restricted…
-
-1
votes1
answer507
viewsHow do I place a downloadable file with a unique id for each person who downloads
How do I put a file to download to my website where the button link changes every time after the file is downloaded and never to a person to download by the same link that has already been…
-
-1
votes3
answers123
viewsVideo Background slow to load (wordpress)
Hello! Please... My site’s home screen video in wordpress (http://agenciaiddigital.com.br/) It takes a long time to load. And the gif preloader finishes uploading before the video. Can anyone tell…
-
-1
votes1
answer176
viewsWordpress with php 7+
I upgraded my server to php version 7, but I can’t access the site. It follows error message. A página de site.com.br não está funcionando site.com.br não consegue atender a esta solicitação no…
-
-1
votes1
answer1014
viewsFeatured Post - Wordpress
So I want to do something like in the following example http://www.f1bc.com/ Type, the frame that appears on the home of the site I left, where has a post with the big image and 2 on the right side.…
-
-1
votes1
answer168
viewsWordpress Plugin That Hangs Menu at the Top of the Screen
Someone could refer me a wordpress plugin that makes the Lock Menu at the top of the screen when it scrolls down the screen.
-
-1
votes2
answers100
viewsHow to resolve page redirection in form?
I’m creating a land-page lead capture. I need to pass the files via ajax to not have to redirect the page, however whenever I send the data to the page that should include it in the database it…
-
-1
votes1
answer3801
viewsError Message: Can’t use Function Return value in write context in
I’m getting the following error Fatal error: Can’t use Function Return value in write context in C: Windows iwpserver htdocs wordpress wp-content themes usagistream index.php on line 17 the index…
-
-1
votes1
answer158
viewsHow to update an Adsense div in x seconds without refreshing the page
I have a site with ads from Adsense, wanted a script or javascript or php to update it x in x seconds, a loop. On a 30-second basis.
-
-1
votes1
answer60
viewsList of product selections
I’m looking to develop a website, where customers will be able to assemble their book by selecting. Cape Sheet type Design type Number of pages ETC... I’ll leave a link to better understand…
-
-1
votes2
answers228
viewsLoop wordpress with different div positions
I have a category of recipes in Wordpress appear 2 post in it. I would like each post to have a formatting. Ex: Content to the left and image to the right and another image post to the right and…
-
-1
votes2
answers1262
viewsHow can I center a banner?
I have this code below and am inserting in the wordpress plugin. The banner appears on the site but is not centered, is appearing glued to the left. Someone pde please pass me this code again just…
-
-1
votes1
answer27
viewsFatal Error related to the page.php theme
My website presents the following error: Fatal error: Call to Undefined Function sanzo_get_page_options() in /home/julisaupiscinasc/public_html/wp-content/themes/Sanzo/page.php on line 3 The code…
-
-1
votes1
answer49
viewsSecurity with Wordpress
I am updating a site and I have a question related to the security of it: In the database files the connection variable with the database is global; The PHP part is bundled with HTML; Variables of…
-
-1
votes1
answer65
viewsProblem when inserting into mysql table
Good afternoon, I have this code: <?php $servername = "xxxxxxxxxxx"; $username = "xxxxxxx"; $password = "xxxxxxxx"; $dbname = "xxxxxxx"; $conn = new mysqli($servername, $username, $password,…
-
-1
votes1
answer28
viewsproblems with installing wordpress on server with Cpanel
I am trying to help an NGO as a volunteer to: recover your website after an incident with your web hosting service (internal sabotage by someone who left the organization) the fact that I do not…
-
-1
votes1
answer275
viewsHow to create a city selector before entering the site
Hello I’m trying to create a city selector for the user to select the city and according to the city, go to the specific page, but I don’t even know how to search about it I did everything in…
-
-1
votes1
answer669
viewsCustomize Woocommerce Registration!
I have a project where I need to customize the Woocommerce registration form, it already has email and password. But I need to add the CNPJ field and validate if it is true and this information…
-
-1
votes2
answers1063
viewsMy site does not update CSS
Guys I made some modifications to my site only in CSS. However, it does not update the modifications only that I realized that taking away the https and putting only the http it modifies, it is as…
-
-1
votes1
answer252
viewsCalculate shipping for more than one product in Woocommerce cart
When I add only one product in the cart it shows the shipping options I have set up, but when you have more than one product you have no option for shipping and ask to check delivery form. Following…
-
-1
votes1
answer33
viewsHow to disable conversion ";)" to emoji in Wordpress?
Inserted a content on a Wordpress page I put a ;) and he turned into emoji. How can I fix this in Wordpress?
-
-1
votes1
answer1218
viewsBehavior of the Cart in Woocommerce
How to change checkout behavior in Woocommerce? I’m in a different situation for products and subscriptions. The buying behavior is different and would like to put the same process for both types of…
-
-1
votes1
answer89
views -
-1
votes1
answer36
viewsScreen does not fit
I am using Wordpress. On the computer, the following page: http://jqnews.gq/quadro-de-horarios/ , shows all tables in the correct way. Already on mobile and devices with smaller screens, the tables…
-
-1
votes1
answer318
viewsSearch post and load it into a div using Ajax in Wordpress
I have the following structure in wordpress. <input type="text" id="busca_artigo"> <button id="btn_busca_artigo">Enviar</button> <div id="resultado_pesquisa"></div>…
-
-1
votes1
answer101
views<? php wp_head(); ? > = FIXED when scrolling in wordpress?
Hey, guys, I was wondering how I can get my menu fixed when I scroll the browser, regardless of the theme I’m using, until I’m using a free Customify theme and I saw that it doesn’t give me that…
-
-1
votes1
answer21
viewsTake site forwarding on the line
I have a website on linode and created a domain name, but it is being redirected to the main domain. I have no knowledge in linux, someone can help me? All links that are not: meusite.com.br are…
-
-1
votes2
answers42
viewsError 404 when configuring custom URL
made the migration of a wordpress site / Plesk (site to web) and works all well except a detail: The site only works if the pages have the following format: http://brasilcacambas.com.br/? p=123 if I…
wordpressasked 6 years, 3 months ago Italo Rodrigo 4,344 -
-1
votes1
answer20
viewsI need to use only wp_posts from another db Wordpress
I have 2 sites with different themes in Wordpress: Website 01: MAIN Site 02: Secundario (I need the site 02 access the database site 01 and take the posts from there always) I don’t know how to do…
-
-1
votes1
answer14
viewsExport Wordpress Subsite
I have a Multisite system in my wordpress, and I need to export a Subsite (child site) to another server, via FTP, how do I do this? is possible ?
wordpressasked 6 years, 2 months ago Vinicius Matsumoto 1 -
-1
votes1
answer47
viewsFailure to put include on site with wordpress
I have the address of a web radio and I would like it to work on the Wordpress site. I put the code below in my header.php and this radio should appear as navbar at the top of the entire site.…
-
-1
votes1
answer1818
viewsWordpress images do not appear
I have a problem on a wordpress site, when I enter the library, it is in infinite loop, performing call to admin-ajax.php and does not display images. What could it be? I’ve run out of ideas.…
-
-1
votes1
answer201
viewsPHP error 'WPLANG' - assumed 'WPLANG'
Good evening. I am beginner in PHP Wordpress development. I downloaded a site in WP PHP to make changes, so when calling on the localhost, I get the following message: Warning: Use of Undefined…
-
-1
votes1
answer18
viewsError adding wordpress admin button
I am developing a wordpress plugin and when I use object orientation to add a button in the post section it displays me the following error: "Warning: call_user_func_array() expects Parameter 1 to…
-
-1
votes1
answer15
viewsHow to get the Slug from the current page / for script queuing
I am developing a plugin, and I would like to check which page of the plugin is being visited, because I have the goal to queue the scripts according to the page, because I currently realized that…
-
-1
votes1
answer29
viewsHow to get a wordpress post randomly
Good, I want to search for a random post of the articles but it always gives me the same article. wp-json/wp/v2/fatos_random? filter[orderby]=rand&per_page=1 Thanks for the help…
-
-1
votes1
answer55
viewsHow to put more than one link on the same button?
How can I put more than one link on the same button? Kind of a dropdown. Example: https://passoapasso.org.br/transparencia/ ps: I use Wordpress.…
-
-1
votes1
answer44
viewsWoocommerce api does not connect
Good morning to all!! Guys, I installed Woocommerce on localhost and I want to study its api...I went there, generated the keys and I’m calling the api like this:…
-
-1
votes1
answer76
viewsProblems when passing variable by url in wordpress
I intend to pass a variable in the url in my wordpress project. I have the following form: <input type="text" id="CodigoUtente" name="CodigoUtente" placeholder="Digite número do utente" />…
-
-1
votes1
answer32
viewsTemplate and htacess Wordpress page
In Wordpress: On a template page: I have a link: <a href="http://localhost/wpcurso/exercicios-questoes/?id='.$row->id_exercicio.' " >' . $row->titulo . '</a> That points to another…
-
-1
votes1
answer44
viewsRecord multiple images through a Wordpress Gutenberg block
I’m creating a new block of Gutenberg which serves as an image gallery. The idea is that the user can upload several images through the back-office. For the attributes I have the following:…
wordpressasked 5 years, 9 months ago João Dessain Saraiva 1 -
-1
votes1
answer50
viewsHow to develop a wordpress homepage that changes according to locale
I need to create a site, in wordpress, that the home recognizes the location through IP. Example: In Rio de Janeiro the IP is XXXXXX, in which case the home page would be X In São Paulo the IP is…
-
-1
votes1
answer21
viewsHide menu, show Sticky
I am making a site in wordpress, but my problem is that, I want to hide the menu by default and make appear only the Sticky menu. How can I do this with javascript? I’ve tried and searched, but I…
-
-1
votes1
answer25
viewsshows 3 custom fields with conditions
I got that code right here: <?php if ( custom_get_meta( 'Plot') == true ) { ?> // campo principal <?php echo custom_get_meta( 'Plot' ); ?> // campo principal a mostrar <?php } else {…
-
-1
votes2
answers35
viewsHow to change the URL of the Wordpress homepage?
Hello, people. Well, I will try to be as brief as possible. I currently use this URL on my homepage: https://site.com/ which is my domain and I’d like her to be like that: https://site.com/br/ that…
-
-1
votes1
answer143
viewsAdvanced Custom Fields plugin works on Localhost but not on Hosting
I made my theme on Localhost and used the Advanced Custom Fields plugin, everything ok. When I send the theme to the server, I install the Advanced Custom Fields plugin, the "Create Fields" button…