[Plugin: More Taxonomies] Get Terms
-
For the life of me I am can’t figure this out.
I am trying to test for a taxonomy term/tag and I can’t get the test to work. ie: if this post has term/tag “my-term” then echo ”;
I have tried:
$terms = get_terms("my_taxonomy"); $count = count($terms); if ( $count > 0 ){ echo "<ul>"; foreach ( $terms as $term ) { echo "<li>" . $term->name . "</li>"; } echo "</ul>"; }
I’ve tried has_term, has_tag, is_object_in_taxonomy and more. Nothing will list the terms. I have public queries turned on.
I am using advanced custom fields and using custom post types. Let me know if you need more details.
https://www.ads-software.com/extend/plugins/more-taxonomies/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: More Taxonomies] Get Terms’ is closed to new replies.