For this site, I wanted a way to show only posts from one category on the homepage. It seemed simple enough, but it took me about half an hour to get it right.
See, most plugins are developed to exclude categories from the homepage, but what if your theme (like mine) uses the homepage template for both the category and tag pages?
What happens is when I use a plugin that excludes the categories from the home page, it also excludes them from the tag and category pages as well.
I found the best WordPress plugin to use if that happens to your site as well is the Home Categories plugin.
The Home Categories plugin takes a different approach and instead of excluding other categories than the one you want to show, this plugin includes only the category(s) you want to show on your homepage, leaving the rest alone.
There are also other benefits to using a plugin like this:
- If you have a lot of categories, it’s a pain to have to go and exclude all the ones you don’t want to show up. I think it’s a lot easier to just select the ones you do want.
- Whenever you create a new category, that new category will show up on the homepage until you exclude it. It’s cumbersome to have to remember to go and switch every new category off. It’s far easier to just turn the ones you want on.
One thing that I did notice is that there’s been no recent updates for the extension, but it work 100% correctly on WordPress 4.9+.