WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve: Excluding posts from one category on homepage (4 posts)

  1. databell96
    Member
    Posted 1 year ago #

    I'm working on a site with a homepage that displays posts from all categories. However, I don't want one category id, in this case 14, to not have their posts display on the homepage. Only on its own category archive page. Used to be you could exclude a category by using query_posts in your template, but it seems things have changed in Twenty Twelve. How would I do it now?

  2. David Choi
    Member
    Posted 1 year ago #

  3. databell96
    Member
    Posted 1 year ago #

    I was trying to see if I could do it sans plugin.

  4. David Choi
    Member
    Posted 1 year ago #

    Just downloaded now to check it, this plugin only has one file.

    http://wordpress.org/extend/plugins/single-categories/

    Why not see how it's done? You can probably replicate the feature into your theme's functions.php file.

Topic Closed

This topic has been closed to new replies.

About this Topic