Questions tagged as 'wordpress'

1
answer

View wordpress posts with SQL

I'm doing a static site, where all the files are in PHP, however this site has a blog that must be managed by Wordpress, there you ask me and why not do everything by Wordpress? because it is rsrsr order are orders né. Then I had the idea of...
asked by 17.07.2017 / 22:05
2
answers

Query_post, get the taxonomy through the custom post field

Good morning, everyone. A page has a custom field with the name of a post_type. In query_post, I want to get the value that this field does not have the custom name (choose) $ choice is the value that I get in the custom field. I do n...
asked by 12.06.2017 / 11:29
1
answer

List posts by category

I have several posts and some of them have a category called "Highlight" and the others are uncategorized, what I need to do is list all these posts, the first ones always need to be the "Highlight" category regardless of when were posted. Th...
asked by 13.07.2017 / 18:50
2
answers

I can not enable caching and GZIP compression on my site. Because?

I have a client site to optimize on Wordpress. It was rated 32 and 34 on the mobile and desktop test on PageSpeed Insights by Google, respectively. I improved some items and the scores went up to 51 and 56. I installed the WP Super Cache c...
asked by 09.06.2017 / 17:22
1
answer

Tips on how to make a search field with Wordpress

I need tips on how to create a search field in Wordpress, I have a little knowledge on the platform but still very limited and I do not know where to start. The search field is composed of state, city and neighborhood, I read several tutorial...
asked by 02.06.2017 / 03:05
2
answers

WP_Query complex

I'm putting together a calendar of events in Wordpress and I need to list all the events of the week grouped by the current day. I have events that last only one day and others that last the whole month. I created the custom post type "Events" a...
asked by 19.04.2017 / 18:26
1
answer

Pull post image worpress

Hello, I'm developing a blog on my site, and I added inside the post an image through the media insertion, however, I would like to know how I pull this media image through the code to insert the same image elsewhere. Example: I would li...
asked by 12.04.2017 / 17:59
1
answer

Foreach multiplying results coming from the database (PHP / Wordpress)

How do I stop foreach from multiplying results from the database? I have the following function: $categoriess = (array) get_terms( 'job_category', array('hide_empty'=>false) ); echo '<pre>'; print_r($categoriess); echo '</pre&g...
asked by 21.02.2017 / 18:52
1
answer

Image WhatsApp, Wordpress

When I copy the URL of my website into WhatsApp, it does not generate the image thumbnail. On other sites it appears, I wanted to understand which code I should use to resolve the problem.     
asked by 15.03.2017 / 14:45
1
answer

Is there any way to include the Wordpress header in an external page that I created?

When I create a folder with the index inside my site files (where wordpress is installed), the blank page appears and it is used to put things and style normally, but does it have to include my theme header on this page? I know it's a silly q...
asked by 13.03.2017 / 16:49