Site logo

Archived topic

Hide posts

3 replies · Started by Kle on September 28, 2019

Viewing posts 1–4 of 4

Hi there,

Is there a way on GP to hide posts from appearing in the home page/recent posts feed but live nonetheless?

Hi there,

you can use the pre_get_posts() function in WordPress to change the loop query.
What determines which posts are to be removed? e.g specific taxonomy, author, post IDs etc.

Thank you David, I don't have previous experience with pre_get_posts(), will look into that.

If you need some assistance then let us know what 'conditions' are required to hide / show posts. e.g cat / tag / individual posts.

This archived topic is closed to new replies.