This code enables you to exclude single posts & pages as well as posts in different types of archives like author, category, search, and tag archive type pages.
Simply add to your child themes functions file and swap out the i.d to suit your needs.
The code determines if the blog template ( included in Genesis ) is being loaded. You’ve probably tried using is_home()
, is_page('blog')
and is_page_template('page_blog.php')
with pre_get_posts however those conditionals will not work with the blog page template.
Here’s the code for logged in members:
Leave a Reply
You must be logged in to post a comment.