I am running into one issue with pre_get_post filter. Actually I have 4 post types. […]
Tag: posts-where
How do I create my own nested meta_query using posts_where / posts_join?
Some of my posts (not all) have a price as a meta key/value. Today I […]
posts_where Fails with More than One Custom Field in Query
Querying either of the 2 fields individually gives the expected result (posts are displayed). But, […]
Extending WP_Query â Optimise SQL query
I’m storing posts, a user follows in a custom table that has the columns id, […]
Get Posts updated or published within the last x hours
Okay, I’m trying to get posts that have been published within the last x amount […]
When querying a combination of posts and other meta fields, is there a better solution than directly modifying the WHERE value?
This question is a follow up to a question I recently asked. I’ve implemented what […]
Custom time range for the posts_where filter
I’m creating a function that displays the most viewed posts and would like to be […]
Search ONLY by meta key / meta values
I’m almost there on this one. On functions.php i have this: function base_home_product_post_type( $query ) […]
Custom query incorrectly returning everything
I’m missing something somewhere, but I cannot connect the dots. Everything outputs properly except that […]
Compare post-IDs within WP_Query? (Less than / Greater than)
Can I use WP_Query to only query posts less than (or greater than) a given […]
No More Posts Available.
No more pages to load.