Support » Themes and Templates » get_category_parents as id’s

  • Can get_category_parents return the unique id for a category instead of the slug or friendly name?

    If not how would I go about getting a array of the current viewing category heritage?

    Currently I’m using
    $parents = explode('|', get_category_parents($curcat,FALSE,'|',TRUE));

    and processing with

    ‘if (in_array($this-slug, $parents))’

    Thanks

  • The topic ‘get_category_parents as id’s’ is closed to new replies.