In a WordPress theme, how do you list all terms associated with a post, and of a certain taxonomy, and only show terms that are children of set term. And set a custom separator?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put this in your functions.php:
And then in the theme file, you call it like this:
Here is an example that gets all terms in the ‘video-type’ taxonomy, that are direct-children of the term with ID 5, and separate the terms with a comma and space: