List the categories that are peer (i.e. share the same category parent) to all lowest-level assigned categories for the specified post.
As of April 2026, Peer Categories is a WordPress sibling plugin with 10 active installations and a 0/5 rating0. It has been downloaded 7.5K+ times in total. Requires WordPress 4.6+ and PHP false+. Available on WordPress.org since 2009.
This plugin provides a template tag which acts a modified version of WordPress’s built-in template tag, the_category(). the_category() lists all categories directly assigned to the specified post. c2c_peer_categories() lists those categories PLUS any categories that are peer to those categories and MINUS categories that are parents to other assigned categories. Peer categories are categories that all share the same category parent.
For example, assume your category structure is hierarchical and looks like this:
Vegetables
|-- Leafy
| |-- Broccoli
| |-- Bok Choy
| |-- Celery
|-- Fruiting
| |-- Bell Pepper
| |-- Cucumber
| |-- Pumpkin
|-- Podded
| |-- Chickpea
| |-- Lentil
| |-- Soybean
If you directly assigned the categories “Fruiting” and “Pumpki…
| WordPress | 4.6+ requiredTested up to 6.8.5 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.