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
votes0
answers149
viewsWordpress - Custom Post Types URL
Advertising System in Wordpress Post Categories and Sub-Categories (States / Cities): localhost/site/cities/sp/Sorocaba (example) Custom Post Types: Coupons: localhost/site/coupons/postname Ads:…
-
1
votes0
answers85
viewsHow can I relate 3 field to Wordpress post?
I have a custom field whose name is type of vehicle. This field gets the guys car or motorcycle. I made a combo select with jQuery which, when selecting the type of vehicle, is completed with the…
-
1
votes1
answer110
viewsNumber of markers in Google Maps
I was studying some ways to implement Google Maps, and saw in a wordpress site a map with the counting of information, I wanted to know if you know a plug-in that does the same, or through the…
-
1
votes0
answers111
viewsLoop wordpress with colorful div
good morning! I’m setting up a gym website where there’s a menu of modalities. I made a custom post in wp to create the modalities, but my problem is time to call the modalities, because each…
-
1
votes1
answer112
views -
1
votes1
answer1266
viewsCustom search plugin with wordpress
Is there any plugin that makes it easy to create a custom search in real estate tracking for Wordpress? Model:…
-
1
votes1
answer281
viewsExport XLS content in Wordpress admin
I need to export specific content to XLS within the administrative area, and am using the following code: $arquivo = 'planilha.xls'; $html = ''; $html .= '<table>'; $html .= '<tr>';…
-
1
votes1
answer689
viewsCarousel with wordpress loop in columns
Hello, I’m trying to adjust my Carousel so that it has a grid done by loop, I have the following wordpress code: <?php global $posts; $b = 0; $args = array( 'post_type' => 'banner',…
-
1
votes1
answer453
viewsSort events in descending order in Wordpress
On the table wp_posts, the data is like this : and when I enter an event, other than this table above, goes data to wp_postmeta, and stay like this: in the file that displays the events is like…
wordpressasked 9 years, 4 months ago Hugo Senna 59 -
1
votes0
answers47
viewsHow to change PHP scripts from Mediawiki to Wordpress Plugin?
I’m working on a project where I have Mediawiki PHP Scripts that import information from publications from a database into a Publications page. I need to convert these scripts to Wordpress Plugin…
-
1
votes1
answer3169
viewsHow do I connect to the database via [Wordpress] to query?
Well, I have a call jQuery Ajax in the header.php of my theme that is entering a file PHP at the root of my Wordpress and return me the echo test. I need this file to query the banco de dados and…
-
1
votes0
answers58
viewsHow to get the $recipient (recipient) of Woocommerce emails
I’m trying to get the email from the recipient of Woocommerce emails that go to Admin. I know there are other ways to do this but I need it to be by comparing the recipient to Admim WP. //////////…
-
1
votes0
answers51
viewsCustom search Fields and tags in Wordpress with slow results
I have a Wordpress site that holds custom Fields related to "Photo Albuns", I am now creating a search engine for such. The problem is that because he uses Tags in his albums and custom_fields in…
-
1
votes1
answer398
viewsIs it possible to create a dynamic field within an Advanced Custom Field?
I need to create a field dynamic pulling information from the database that will be relating teachers and their characteristics and putting this field as ACF [Advanced Custom Fields] within a UI CPT…
wordpress advanced-custom-fields custom-post-typesasked 9 years, 2 months ago Marcos Vinicius 7,188 -
1
votes1
answer335
viewsWhen I start a session in Wordpress, the template layout breaks
I am developing a Wordpress template for a client, but when I soon in wp-admin, then the slide show does not work and the layout breaks, everything looks like CSS error. But if I open in anonymous…
-
1
votes1
answer1070
viewsReceive javascript data for query in mysql
I was trying to return the variable post_id to php in order to perform a SELECT mysql, but I’m not able to work with post_id. How to do the query ? <script type="text/html"…
-
1
votes1
answer663
viewsError "Out of memory (allocated 248512512)" in wp-db.php
Does anyone know which error would be related to this wordpress message. Fatal error: Out of memory (allocated 248512512) (tried to allocate 17498497 bytes) in…
-
1
votes0
answers200
viewsDropdown menu inside Wordpress post
What would be the best way to put a Drop Down Menu within a Wordpress post? Since the Links of this menu should open in the same post, as video for example... Click on the Menu then click on Option…
-
1
votes1
answer186
viewsSaving information in bank and sending via post in Rails
I have a view that explains a system and allows the user to send content for publication. It just type in a textarea and this text is sent to a WP blog, along with your username and email, which…
-
1
votes2
answers1293
viewsButton for cell phone call
I need a code that helps the visitor of a site (in Wordpress) to make cell phone calls or trigger Whatsapp by clicking a certain button. Any hint?
-
1
votes0
answers48
viewsEnviar featured image do post por e-mail
I need to elaborate a function that uses a form (preferably Contact Form 7) where visitors can indicate that post by placing the email of a friend, and this friend should receive the email with the…
-
1
votes1
answer920
viewsHow to return all results from the [PDO] database?
I’m doing a function to return all the results of a database. The function in this exact format returns me only one result but putting echo in each statement returns me all the results. How can I…
-
1
votes1
answer310
viewsHow to get thumbnail Wordpress with pure PHP?
I would like to take the URL of thumbnails in the Wordpress database using pure PHP to put in a Magento project in order to show the posts on the home page. Like that relationship Magento ->…
-
1
votes1
answer141
viewsCreate an array of custom post type links and names to use in a meta_box without changing the value of the edit post
I am working on developing a Wordpress plugin using two types of post. The first type is created and updated normally, and I’m trying to use it to create a dropdown in the second type. However, when…
-
1
votes1
answer354
viewsRestrict "Author" user to see only images he sends
I need your help to make the "Author" user have restrictions only to view the media he sends. Normally the author has access to all images sent by all users and I need to restrict this access to…
-
1
votes1
answer117
viewsReturn Wordpress Post
I have the following script that returns me the status and the amount of posts you have in this state, now I would like to display these posts, someone knows some solution? <?php $query=" SELECT…
-
1
votes1
answer126
viewsSuffix added to Wordpress site URL
Good afternoon, My site (built on the Wordpress platform), has a problem in all Urls - always appears a suffix "? v=(code)". http://www.carvalhocustom.com/ I have disabled all plugins and changed…
-
1
votes1
answer1443
viewsHow to create categories for a Post type in Wordpress?
Simple doubt, but I can’t find a solution. I created a type of Post called "Products" in functions.php, but it doesn’t come with categories natively. What do I put in the functions to allow the user…
-
1
votes0
answers63
viewsHow to configure the WP Super Cache plugin?
I recently installed the WP Super Cache plugin on a Wordpress blog. In all the tutorials I found to configure it, they say that the best option in the advanced tab is to use the mode: "Use…
-
1
votes1
answer38
viewsWordpress Translation Plugin
Eai guys, well the company ta wanting to translate the site to English and they use Wordpress. The idea is to have a UK flag that when clicking leaves the whole page in English. (Obvio hahaha). I…
-
1
votes1
answer2325
viewsAdd only one product in Woocommerce cart or clear cart
Hello, I’m making a subscription club using Woocommerce and I would like it to be possible to buy only one product at a time. I thought maybe clean the cart before adding the new product or even…
-
1
votes1
answer87
viewsHow to use friendly urls on a php system?
I’m working on a website, first site I do without Wordpress and would like your help to implement friendly urls. I don’t have much knowledge on friendly and .htaccess but I’m trying to learn. My…
-
1
votes0
answers26
viewsHow to modify this statement to get a url to pt_BR?
I’m working on the theme Academy made by the gringos and I would like to know how to modify this instruction to be able to replace register for cadastrar and thus get a url in pt_BR. 'register'…
-
1
votes1
answer71
views -
1
votes1
answer2424
viewsHow to list all posts on a custom page? Wordpress
Well, I created a personalized page where I need her to return all the posts you have registered on the site, as if it were the home. I tried to do it the normal way, creating a custom page and…
-
1
votes0
answers45
viewsHow to direct Submit from a form to the method of a Wordpress plugin?
I am studying Wordpress, and to exercise I am developing a theme and a plugin. The goal is to use a contact form in the theme, that instead of sending the data by email, as usually done, make the…
-
1
votes2
answers373
viewsList POSTS in Wordpress by views
I need to make sure: <?php while ( have_posts() ) : the_post(); ?> list according to the amount of views (post_views_count), it’s like to list popular posts only it will enter the table…
-
1
votes1
answer189
views -
1
votes1
answer315
viewsIs it possible to display a different image for each Category type in Wordpress?
I have a Wordpress page with some posts, and they present some categories, but we will define them as: cat1, cat2 and cat3. Within the loop of Wordpress are displayed three posts, each with its own…
-
1
votes0
answers120
viewsWordpress duplicates the permalink
In wordpress on the homepage are all the posts I made. In each post has the title and a photo. In the title, the title link is correct, for example: `meusite.com.br/post1` But in the photo, the link…
-
1
votes1
answer68
viewsAllow another website in a hosting with wordpress
I have a hosting with a wordpress at the root. If I create a folder on ftp and uple another site(non wordpress) in that folder when I require: www.site.com.br/pasta_nova_created wordpress returns me…
wordpressasked 8 years, 9 months ago Rodolfo Oliveira 917 -
1
votes1
answer319
viewsPage not found for Wordpress Post type Category
I’m learning to create a theme in Wordpress and created a Post Type custom. Inside the page I listed the categories created only for this Post Type specific. I just don’t know how to create a file…
-
1
votes1
answer180
viewsHow to complement these queries to get the buyer’s data in the bank?
I made these queries below to get the data from the buyer’s database and the products he bought. With the first query, I got the ID and with these IDS I made a new foreach that took the products…
-
1
votes1
answer38
viewsHow do CPT registration go to a specific page?
Search but not figured out how to make a CPT player registration data (which include name, photo and phone), go to the players page. In other words, I want the registration data (back-end, Wordpress…
wordpressasked 8 years, 8 months ago Igor Valério 13 -
1
votes0
answers261
viewsColor menu bar using Mega Main Menu Plugin?
I am using the Mega Main Menu plugin to configure menu bar in Wordpress and would like to change the default color, how could do this?
-
1
votes0
answers77
viewsRoute conflict in Angularjs and Wordpress
I’m having a problem with routing in Angularjs and Wordpress. Before I didn’t use the html5Mode(true) and my route was /#/dashboad and the route /blog worked normally. But, when I started using…
-
1
votes1
answer97
viewsCustom Taxonomy inside another Custom Taxonomy in Wordpress
I need to create the following hierarchy within the Wordpress admin: Category -> Product Line -> Product A product belongs to a line which in turn belongs to a category. I thought I’d create a…
-
1
votes0
answers32
viewsWordpress main loop change impacts on server?
I used pre_get_posts to change the loop of my Wordpress site. The idea of this loop is to not display posts that I set an expiration date, whose dates are added in a custom field (postexpiry). Do…
-
1
votes0
answers134
viewsError 418 Wordpress, SSL Redirect and W3 plugin
I bought an SSL certificate for my blog and then went to edit the .htaccess to include 301 redirect. I received as a reply that there was being too many redirects and then I checked the file and…
-
1
votes0
answers196
viewsError when activating a theme in Wordpress
Every time I add a theme in Wordpress gives the following error: Parse error: syntax error, Unexpected '[' in public_html/wp-content/themes/Styleshop/epanel/core_functions.php on line 9 Wordpress is…