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
votes1
answer180
viewsWordpress - From the second page is giving error 404 - Not Found
I am creating a theme in Wordpress and the time has come to make the pagination. I managed to create the menus below indicating how many pages have and the next and previous. Only by clicking on…
-
0
votes1
answer216
viewsGet post from a single category with have_posts() Wordpress
I’m showing the latest blog post on an external site I’m developing outside wordpress. <?php //Include WordPress define('WP_USE_THEMES', false); require('./blog/wp-load.php'); //Define quantos…
-
0
votes1
answer197
viewsSort Both by Publication Date and by Update
Guys I’m setting up an Index and I’m trying to do the following... I will have this 'mini highlight' and at the moment I managed to order it by only DATA, but a few times the news will be updated…
-
0
votes2
answers52
viewsResponsiveness of Woocommerce Virtual Store
Hello, I have a responsive template installed in Wordpress, but the responsiveness on mobile phones this presenting a small right spacing. I tried to change the margins by css, but it had no effect.…
html5 wordpress bootstrap-3 wordpress-theme woocommerceasked 7 years, 3 months ago Jonatas Dutka 49 -
0
votes0
answers20
viewsRequest ajax with Wordpress
I am working on a custom Wordpress page. I am making a request via ajax on this custom page, which is theme directory: wp-content/themes/my-theme/my-page-custom.php The page that will process is…
-
0
votes1
answer67
viewsGoogle-Analytics code to monitor the amount of downloads
I need to enter a google-Analytics code to monitor how many times a file (a video) has been downloaded. But as it is a sidebar link that is generated dynamically, I have no way to enter directly…
-
0
votes1
answer339
viewsHow to bring the javascript file to the wordpress theme via code
I have two javascript files inside a folder called (js) and I want to know how to call it in the code of the theme I’m creating. But how do I do that, I know I have to use functions.php or am I…
-
0
votes0
answers159
viewsHow to make a dropdown menu in wordpress?
I have an html code of a website I’m developing. <!-- mega menu --> <div class="menu"> <!-- menu start --> <nav id="menu-1" class="mega-menu dark"> <!-- menu list items…
-
0
votes1
answer209
viewsSet Wordpress Thumbnail as background
I need to put the Wordpress thumbnail as background in a div Currently has img even, using Loop::thumbnail()
-
0
votes1
answer37
viewsProblem with titles on the site,
Here is the website for you to take a look. The problem is this, in the main news and in the sub news there are these title that is with a half-giant space between one line and another ... now in…
-
0
votes1
answer154
viewsRelated Posts by Child Categories
I have the following code working, which shows the related wordpress posts, by category (mother). I need to adapt this code so that in a particular type of post, it shows related posts by child…
-
0
votes1
answer325
viewsTranslation Woocommerce
Hello, I am using Wordpress a few months and I am facing a small problem regarding the translation of some terms of Woocommerce. Here is the image, this page is the product visualization. See that…
-
0
votes1
answer49
viewsCategory Loop in Wordpress
Does anyone know how to create a loop to display categories and how many posts are in each one? Example: Category X (15) Category-y (32) Category-z (40) Where "category"=category name and the number…
-
0
votes1
answer39
viewsBlank page pull posts
I am wanting to create a page that pulls news from a specific category. The question is on Threme, I must put this code with the name page_nome_da_page.php to pull the config ? Or should I put it…
-
0
votes1
answer73
viewsSearch Filter showing only 10 results
Hello, I am developing a website in Wordpress, with a template purchased and I am with a difficulty that, I believe be a doubt on Wordpress and not on the theme. The Website shows several…
-
0
votes3
answers128
viewsCreate a div at the top of the blog (wordpress) to float fixed while scrolling down
I have a blog, I wanted to display an ad in a div after users scroll down and so soon the site is not visible that div appears, and if it goes up again it disappears. website link…
-
0
votes1
answer116
viewsComments facebook X wordpress
How to make the comments made on a Facebook fan page also be automatically published on the site? Some fan pages, such as Earth’s, for example, show the following message below the comments: "This…
-
0
votes1
answer46
viewsAutomatic scroll after page loading(site in wordpress)
Hello, I have a sub-menu with Product Categories, and a page called "Products" where I list all products(post types), separating by online categories. My wish is that by clicking on a link from the…
-
0
votes0
answers13
viewsHow to change wordpress plugin dynamically?
I am using a plugin on wordpress, which allows me to display a PDF in book form. To use the plugin, I have to write the line [flipbook pdf="http://full-url/NOME_DO_PDF.pdf"] Everything works…
wordpressasked 7 years, 1 month ago Italo Rodrigo 4,344 -
0
votes0
answers162
viewsError downloading PDF in Wordpress
I created a page to download PDF files. It included the following code: <a href="https://revistamovimentto.com.br/wp-content/uploads/2017/10/Movimentto-Edição-88.pdf" download> <img…
wordpressasked 7 years, 1 month ago Italo Rodrigo 4,344 -
0
votes1
answer32
viewsDelete the return links from the wp_list_categories() function;
I’m trying to return only the list of taxomanias of a custom post type called "Portfolio". I only need the category names. The code below is returning the categories with links, someone knows how to…
wordpressasked 7 years, 2 months ago Ingo Wolter 1 -
0
votes1
answer78
viewsPrint dynamically URL of Wordpress posts page
How to make a echo on the post page URL when Wordpress is set to display a page as Homepage and posts on a specific page? For example: In Settings > Reading it is possible to define a static page…
wordpressasked 7 years, 1 month ago Mr Genesis 464 -
0
votes1
answer421
viewsShortcut home button to upload the site?
I have a website, and the customer asked that when I click on the home button of the website KEYBOARD rise in full. How I do?
-
0
votes1
answer1536
viewshow to resolve ERR_TOO_MANY_REDIRECTS?
I have a wordpress site that is showing this error ERR_TOO_MANY_REDIRECTS How to solve this?
-
0
votes0
answers99
viewsIdentify if it is blog and hide div - Wordpress
I put a div called "imagem_top" and I want it to have the property display: none when it’s the blog page, Woocommerce product or post. I’ve tried to put in functions.php, header.php, page.php and…
-
0
votes1
answer58
viewsSetting Domain for Wordpress Page Structure
I have a Wordpress installation with several "sites".. I will explain: site-main.com/ -> opens a blank page (index.php, with no redirection in options/reading) site-main.com/site-um ->…
-
0
votes3
answers2819
viewsWays to call image in wordpress
Following <div class="site-branding"> <img src="http://sitedementirinha.com.br/wordpress/wp-content/themes/alizee/images/logo1.png"/> </div> I have this code in a Wordpress theme,…
-
0
votes0
answers48
viewsHow to translate a plugin?
Hello, good afternoon! I have a problem and I can not find the solution, I am using the plugin Magic Members and I am trying to translate the plugin, because this in English, I used the plugin loco…
-
0
votes2
answers300
viewsHow to check if there is a post in a certain category
I wonder if you can help me, I’m trying to check if there is any post in a certain category to do validation and if and esle, however without much success so far. <?php $paged =…
-
0
votes1
answer158
viewsRemove wordpress password difficulty
I tried to remove the difficulty to write a password in wordpress, I use the plugin Ultimate Members to register, I used the code below to solve the problem, but I could not. function…
-
0
votes1
answer1279
viewsOpen link inside a div
I use a plugin to manage my posts on Wordpress, but I would like to make it open within a DIV specific. That in which is the #main-view. Today he finds himself like this : target="_parent" Below…
-
0
votes1
answer215
viewsConflict when importing another Jquery in Wordpress
Hey, how you doing? I’m with a little problem that has already consumed me a lot of time, I’m trying to put a mask for time in an input field, the code is already ok and running the problem is when…
-
0
votes1
answer74
viewsImport featured images without having to download them. - WORDPRESS
I’m working on a website that has news since 2001. I would like to export only your ( posts + featured images) from 2015 backwards, but I don’t need to download the images so I imagine everything is…
-
0
votes1
answer57
viewsWordpress category and tag query
How I search posts by category and tag? I did it and it didn’t work: query_posts(array( 'post_type' => 'noticias', 'showposts' => 2, 'category__and' => array(70), 'tag__in' => array(77),…
-
0
votes0
answers32
viewsFatal error: Cannot redeclare Wp_post_type
I am having a problem in a client’s Wordpress, I can not fix. You are presenting the following error. Fatal error: Cannot redeclare Wp_post_type::$show_in_rest in…
-
0
votes1
answer1954
viewsRemove featured post image
How do I remove the featured image from a post (image posted in the post) without removing it from the website homepage? Note: I have an image site with citations and this is highly problematic…
wordpressasked 7 years ago Peter Cruise 1 -
0
votes2
answers44
viewsAdd javascript to worddpress
I have an application that uses wordpress and I need to add a javascript in it, I saw several videos and posts on the internet and I understood just do this: <?php wp_register_script("meuscript",…
-
0
votes1
answer48
viewsProgramming PHP WORDPRESS
I bought a wordpress theme, it when I went to buy appears all handsome. The problem is that when I install it only appears posts! What do I do? I want him as handsome as I bought him.…
wordpressasked 6 years, 11 months ago Jessica Flor 1 -
0
votes1
answer38
viewsConfiguration Wordpress Theme
Are you all right, programmers? People I bought a wordpress theme for a value of 200R$ The Hydro Theme. The problem is that when I looked at it on themeforest it presented all nicely drawn neatly as…
-
0
votes1
answer1234
viewsPHP - Parse error: syntax error, Unexpected 'endif' (T_ENDIF)
I’m having this error in the code in functions.php line 2883, below: ?> <!DOCTYPE html> <!-- Ticket #11289, IE bug fix: always pad the error page with enough characters such that it is…
-
0
votes2
answers107
viewsModify wp-login.php content
Hello, I’m creating a plugin that changes the layout of the Wordpress login screen (located on wp-login.php), but in addition to changing the page style (which I’ve already managed), I wanted to be…
-
0
votes0
answers19
viewsSimple problem: Layout of Plugins on the page
I’m having a problem problem is relatively simple: I’m trying to put the FB comment box plugin to appear under the Author Box. The following image illustrates what I want to do: prntscr.com/hrv5ca…
wordpressasked 6 years, 11 months ago Guilherme David 1 -
0
votes1
answer50
viewsCustomizing Custom Post Type Wordpress Screens
I’m working on a template and classifieds plugin for a project (because the client has fields needs that other plugins do not provide), however I can not insert custom fields in the post post post…
-
0
votes0
answers395
viewsHow to call a specific PHP function with AJAX?
I need to call a specific function inside a PHP file with AJAX. I tried several ways, did searches even here on Stack, but it doesn’t happen at all. What am I doing: PHP code: $functionName =…
-
0
votes1
answer28
viewsWordpress: error in getResults
good afternoon everyone, I’m having this error in wordpress: Fatal error: Call to a Member Function get_results() on null in C: xampp htdocs Corretorawp wp-content plugins clients api list.php on…
-
0
votes1
answer42
viewsDirectory of scripts not recognized
I’m mounting a wordpress site on MAMP installed in windows and scripts . JS put so on footer: <?php wp_footer(); ?> <script src="https://code.jquery.com/jquery-3.2.1.min.js"…
-
0
votes2
answers145
viewsMenu Closing alone
I have a javascript menu and my knowledge of javascript is almost null. And unfortunately this menu on mobile he is closing alone ... and as I do not have much knowledge I am suffering to solve this…
-
0
votes1
answer37
viewsDoubt wordpress
I have a very basic question. I’m starting to use the Wordpress and would like to know what I need to do to configure the theme onepage. I download the template but when I install it it is in blog…
-
0
votes0
answers28
viewsHow do I display news from my old portal with Oracle database to the new mysql database portal in Wordpress
Greetings, my dear friends! I am creating a news portal with Wordpress and MYSQL and would like to retrieve the news from the old portal with ORACLE database. I don’t know, or where to start, to…
wordpressasked 6 years, 10 months ago Constantino 1 -
0
votes0
answers79
viewsMeta Slider Wordpress Problems 4.9.1
Good night. I am developing a theme from scratch in Wordpress and have the meta slider plugin installed in my theme. But when I put the shortcode in my post it does not appear on the page. But if I…