Support » Fixing WordPress » Limitate get_the_category to specific category ID ?

  • Resolved humbucker

    (@humbucker)


    Hello,

    I would like to know if it’s somehow possible to add an argument to the get_the_category function to only display categories (child of a parent category) a post belongs to.

    E.g if my posts belongs to cat 1, 1>2, 3, 7
    I d’like to write get_the_category(catId=1) so that it will ouput me the category name 1>2

    Anything possibile ??

    Thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Limitate get_the_category to specific category ID ?’ is closed to new replies.