This plugin provides template tag which acts version of WordPress's built-in template tag, the category the category lists all categories 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.
Vegetables -- Leafy -- Broccoli -- Bok Choy -- Celery -- Fruiting -- Bell Pepper -- Cucumber -- Pumpkin -- Podded -- Chickpea -- Lentil -- Soybean.
Fruiting was parent to directly assigned category, it and its peers are not included in the list.
The first argument to the template tag allows you to define separator, e.g to have simple comma-separated list of peer categories..
As with categories listed via the category, categories that are listed are presented as links to the category's archive page..
These actions and filters allow you to use alternative approach to invoke each of the identically named in such way that if the plugin were deactivated or deleted, then your calls to the functions won't cause errors on your site..
The filter allows you to customize or override the return value of the c2c peer categories list function..
Arguments string $thelist the list of categories with complete HTML markup, or if the post didn't have any categories string $separator the separator specified by the user, or if not specified false $post id ID of the post, or false to indicate the current post..
Example ** * Amend comma-separated peer categories listing with special string * * @param string $thelist The peer categories list * @param string $separator Optional.
The filter allows you to customize or override the function argument indicating if ancestor categories of all assigned categories should be omitted from the list of categories.
Read more