Parentals 2 Favorites

Rated 5 stars on devot:ee

This plugin lets you fetch info about parents of given category (direct parent and root). Credit to Yuri Salimovskiy for the original Category Parents pi

Get It Now

 

Compatibility: ExpressionEngine 3,.

 

Or check it out here:


Click here to lend your support to: ExpressionEngine 3 Category Parents Addon and make a donation at pledgie.com !

This plugin lets you fetch info about parents of given category (direct parent and root).

Parameters:
category - category id to fetch parent (mandatory)
exclude_self="yes" - exclude the current category from output

{exp:parentals:parent category="{category_id}"}
    {cat_id}
    {cat_name}
    {cat_url_title}
    {cat_description}
    {cat_image}
    {cat_parent_id}
{/exp:parentals:parent}

{exp:parentals:root category="{category_id}"}
    {cat_id}
    {cat_name}
    {cat_url_title}
    {cat_description}
    {cat_image}
    {cat_parent_id}
{/exp:parentals:root}

{exp:parentals:all_parents category="{category_id}"}
    {cat_id}
    {cat_name}
    {cat_url_title}
    {cat_description}
    {cat_image}
    {cat_parent_id}
{/exp:parentals:all_parents}