• Hello, coudl you please hel me how to change this code
    <?php echo(get_category_parents($cat, TRUE, ' ')); ?>

    in order to it works for custom taxonomy “prod-kat”

    Code mentioned above works for posts category

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi!

    I’m assuming you feed the category named “prod-kat” to $cat. Is this correct? In what sense doesn’t this code work? Does en error gets thrown? Does the mentioned category even have parents? Have you tried debugging using the debug modus already?

    Thread Starter janbrokes

    (@janbrokes)

    Hi, thanks for help
    could you please explain what you mean by feed the category named “prod-kat” to $cat.
    Somethig like
    $cat = “prod-kat”;

    thanks

    Thread Starter janbrokes

    (@janbrokes)

    Hi, thanks for help
    could you please explain what you mean by feed the category named “prod-kat” to $cat.
    Somethig like
    $cat = “prod-kat”;

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get custom taxonomy parents’ is closed to new replies.