Only Main Category Posts On Main Page of Blog (3 posts)

  1. jwg1800
    Posted 9 years ago #

    This is probably basic but for the life of me I can't figure out how I've done it on my other blogs.

    I have 4 categories that I post to on my blog. I only want categories for my default blog posts to get posted to the main page of my blog. Right now posts in all of my categories are coming up on the main page though.

    How can I adjust it so that only posts for my default category come up on the main page of the blog?


  2. spucktier
    Posted 9 years ago #

    hey there,

    there are many different plugins to mimic such a behaviour but i found this neat plugin:
    Front Page Categories"

    put the php file in your plugin directory and modify it upon your needs:

    // Change this to the categories you want to show on the front page.
    // Example: $cats_to_show = '1 2 3 4';
    $cats_to_show = '1 3 5 6 7 8 9 10';

    it's really great and a shame it's not included in wp :)

    p.s.: if you like the plugin, voice your opinion: http://wordpress.org/extend/ideas/topic.php?id=214 :)

  3. Chris_K
    Posted 9 years ago #

    Category Visibiliity plugin is another that's frequently mentioned here.


Topic Closed

This topic has been closed to new replies.

About this Topic