get_the_terms problem
-
Hello,
I’m basically after the first term for a post that isn’t equal to any of the ids listed.
I’ve checked the loop by outputting the $term_id and $term_parent for different posts which have the same terms so I can see that the if statement is being passed the same values.
But here’s the problem, for the same $term_id and $term_parent values sometimes the $term_link_content variable has content and other times it’s empty!…
[Code moderated as per the Forum Rules. Please use the pastebin]
Many thanks for any advice
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_the_terms problem’ is closed to new replies.