WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jwg1800
    Member
    Posted 7 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?

    Thanks,
    John

  2. spucktier
    Member
    Posted 7 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
    Member
    Posted 7 years ago #

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

    http://ryowebsite.com/?p=46

Topic Closed

This topic has been closed to new replies.

About this Topic