Codex tools: Log in / create account
Languages: English • 日本語 • (Add your language)
Contents |
Returns a list of the parents of a category, including the category, sorted by ID.
<?php echo(get_category_parents(category, display link, separator, nice name)); ?>
Returns the parent categories of the current category with links separated by '»'
<?php echo(get_category_parents($cat, TRUE, ' » ')); ?>
will output:
Internet » Blogging » WordPress »
the_category, the_category_rss, single_cat_title, category_description, wp_dropdown_categories, wp_list_categories, get_the_category, get_category_parents, get_category_link, is_category, in_category