April 4, 2019 at 11:48 am #285928
In my site theme, this code is for get the child category
php child_cat (get_the_ID(), 'poetname', );
How i can get child and parent category together?April 10, 2019 at 1:34 am #286190
Use a php conditional statement with the
&&operator combining the two function statements. Search for
get_category_parentsin WordPress function reference.
You must be logged in to reply to this topic.