Check if a post is in any child category of a parent category
In a site I’m developing, I have the following category structure: * movies (parent) * thriller (child) * comedy (child) * drama (child) The current post is in the comedy category. The has_term function with the following parameters returns true: has_term( ‘comedy’, ‘category’ ) But, the same function with the following parameters returns false: has_term( … Read more