WordPress.org

Ready to get started?Download WordPress

Forums

Get Category of current post if category parent of ... (1 post)

  1. holgerpleick
    Member
    Posted 1 year ago #

    Hi!
    Some of my posts are about Partners. So I have Catagories for each partner which are all child of the category partner.

    i.e.
    Parent-Category: partner
    Childs: aaa, bbb, ccc, ddd

    I want to get the child-category of the current post, if it's child of partner.

    i.e.
    The Post is in category aaa.
    Check if post is in partner via aaa, if yes: output: aaa

    Can anybody help?

Topic Closed

This topic has been closed to new replies.

About this Topic