I’m working on a form for filtering a list of posts using custom fields created […]
Tag: pre-get-posts
Removing “s” from search with custom parameters
I’m trying to do something that I thought would be quite simple and has turned […]
Injecting a custom sql query into a page/theme
I have written a custom sql query for our WordPress website (fairly elaborate and not […]
Obliterate the main query and replace it
There are lots of good resources on how to alter the main query, or add […]
Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
This seems like it should be straightforward, but I’m stuck on it! If a user […]
Prevent pre_get_posts filter on specific post type
I am running into one issue with pre_get_post filter. Actually I have 4 post types. […]
Remove category from query (show all posts in archive.php) pre_get_posts()
I am using pre_get_posts() to allow all posts to be displayed on any category archive. […]
How to create an archive for all posts that do not have a post format?
The title says it all. I need working pagination, correct post count etc. Basically a […]
Using meta_query on pre_get_posts to exclude a particular meta_key value
I have a simple filter running on the main query on the front page, it […]
Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
I have the current function on my theme using pre_get_posts, currently right at the bottom […]
No More Posts Available.
No more pages to load.