Is there a way I can hide a certain categories content from just the homepage Posts section of my WordPress Site? So, those posts are still posted and live; just not visible nor accessible from the homepage posts area. I’m calling the category twice on the homepage; once in the header within a plugin I’m using, and the other where the posts are created by default by WordPress. How can I hide my ‘featured’ category in the main page content of recent posts on the homepage?
Leave a Reply
You must be logged in to post a comment.
Okay, it sounds like you’ll want to modify the primary Loop using
query_posts()
, but only on the Site Front Page.I don’t think TwentyTen includes a
front-page.php
template file, so we’ll modifyindex.php
directly. Add the following code toindex.php
, anywhere before the Loop output: