Plugin Directory

Peer Categories

Version: 1.1.3 List the categories that are peer (i.e. share the same category parent) to all lowest-level assigned categories for the specified post

Template Tags

The plugin provides three optional template tag for use in your theme templates.

Functions

  • <?php function peer_categories( $separator = '', $post_id = false ) ?> Outputs the peer categories.

  • <?php function get_peer_categories_list( $separator = '', $post_id = false ) ?> Gets the list of peer categories.

  • <?php function get_peer_categories( $post_id = false ) ?> Returns the list of peer categories for the specified post.

Arguments

  • $separator Optional argument. (string) String to use as the separator.

  • $post_id Optional argument. (int) Post ID. If 'false', then the current post is assumed. Default is 'false'.

Examples

  • (See Description section)

Requires: 2.5 or higher
Compatible up to: 3.3.2
Last Updated: 2011-12-11
Downloads: 1,428

Average Rating

4 stars
(2 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.