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_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:
You need to pay to fully access this tutorial.
Enjoy unlimited access & coding support by registering.