Show Just One Category in WordPress Categories

A challenge come up on the forum for a user who had a very interesting wish. When clicking on a category from the main page, he wanted a page showing the categories, but ONLY the categories from that category, not the children of the categories.

Let me explain this better. By clicking on a link from either the main page sidebar or a category link under a post title (or anywhere a category link is), if the category you are visiting has any subcategories, they will not show up on the displayed category list. Only the posts within that category will appear.

A very neat trick. But unfortunately, not an easy answer to solve because it goes against the normal use of WordPress tags.

This plugin will cause WordPress to display on a category archive page only those posts which are direct members of that category, i.e. this plugins will exclude from that category page all posts which belong to any of that category’s subcategories but do not belong to the category itself.

The plugin is called Just One Category, for displaying only one category on a category page for all your categories, and looks very easy to use.

6 Comments

Do you know of any blog editor (or plugin for same) that will allow me to post to multiple blogs at the same time? Some of my posts have significant overlap and it would be nice to write once / upload once / post twice (or more).

No, I don’t know of such a Plugin and I would not support one if there was one. If your post content overlaps and you post to multiple blogs with the same content, you are risking penalties for duplicate content from Google’s PageRank.

Thanks this post just saved my life! Upgraded a site that had an older no subcats plugin, cue plugin not working, site looking very strange, considering reinstalling old version of wordpress… then I found this and followed the link and now I am saved!

Republish where? How? If you want to “republish” your content then use feeds and control the length of the feed. I do that in my sidebar here. Some of the feeds are category specific. No Plugin needed.