Tag Info

New answers tagged


I wouldn't use custom page templates merely for changing the layout of the blog posts index. Using page templates for the blog posts index bypasses the core handling for display of the blog posts index (which per the template hierarchy uses either home.php or index.php to render). Edit I never...said that I want to change layout of the blog posts ...


Looking at your comment, photos and videos aren't custom post types but actually categories. I'm changing my answer to reflect your comment. You can use WP_Query to exclude specific categories in your loop. You can achieve that with $query = new WP_Query( 'cat=-1,-2,-3' ); This will exclude categories with ID's 1, 2 and 3, and will only show categories ...

Top 50 recent answers are included