The scenario a custom post type wiki a (hierarchical) custom taxonomy topics a page template archive-wiki.php The situation Posts show up and get ordered by post_date (which is the...
I’m trying to implement my own query ordering, here is what I came up with… $query = new WP_Query('post_type=contentboxes&include=" . $contentboxes . "&order=ASC&orderby=include' ); My custom loop, $contentboxes looks...
It looks like an e-commerce plugin’s core query will be of no use to me in one particular template so I would like to discard it completely in favor...
The default search returns all post types, which is what I want. But for one specific custom post type I want to limit the result to a specific meta...
The title says it all. I need working pagination, correct post count etc. Basically a new page for posts but with a filter for post formats. Things I have...
I’m working on a form for filtering a list of posts using custom fields created with the Advanced Custom Fields plugin. Because of the form, I’m using the pre_get_posts...
Using the pre_get_posts hook, I’m trying to allow users to narrow down their search by limiting it to posts with certain (multiple) tags applied. This is my hook and...
I’m trying to build a search page for music tracks that lets visitors: Choose the post type Choose a genre Choose a mood Specify a Beats Per Minute (bpm)...
I need to output popular posts in a blog using several params: Not older than one week; Rating is over than 250; Order by date Here is my code:...
I have created a Custom Post Type for Booking, new posts are inserted by visitors and the title is formatted as date on which the booking takes place. So,...