I’m trying to use pre_get_posts for the first time without any success. It’s a very […]
Tag: pre-get-posts
is_category() in pre_get_posts strange error
I have a function that sets posts_per_page option depending on the category viewed. I discovered […]
Replace Main Query With Custom Query
I want to replace the main query with my own custom query. The thing is […]
How would I use pre_get_posts to query another site for posts in my multisite network?
I have a multisite network of sites which should display blog content from each other […]
Issue with pre_get_posts on custom post type archive pages
Overview I am creating a theme which has 2 custom post types (as custom plugins): […]
complex restriction of items in media library
I have a need to limit items in the media library for users without a […]
Filter pre_get_posts does not modify Mine/All/Pending
Maybe I need to use a different filter, but I am using the pre_get_posts filter […]
Varying the number of posts per page from the first one
I want to have the index page to have a different number of posts than […]
Modify the main loop to display current month / year
So pre_get_posts seems to be the way to do this now – a lot of […]
sort child pages on admin
I have a hierarchical CPT with the following structure: – parent item 1 – child […]
No More Posts Available.
No more pages to load.