The get-terms tag has no wiki summary.
1
vote
2answers
5k views
Get the the top-level parent of a custom taxonomy term
How would I get the top-level parent of a given term?
I am using wp_get_object_terms to get taxonomy terms on posts, but instead of showing all tagged terms, I only want to show tagged terms' ...
5
votes
2answers
572 views
get_terms vs. get_categories: does it matter?
I'm fairly new to wordpress and am coming across new things each day - one was today when I happened across get_terms and noticed that it was basically the same as get_category.
Any particular ...
2
votes
2answers
538 views
get term by id without taxonomy
Can I get the term by it's id without knowing to whish taxonomy it belongs?
I have a meta field that stores term ids, but doesn't store the taxonomy. However, all the get_term function have taxonomy ...
0
votes
2answers
178 views
get_terms orderby name as numbers
I have a custom taxonomy filled with terms such as 'volume 1', 'volume 2', 'issue 1', 'issue 2', 'issue 10' and get_terms orderby name returns list as:
issue 1, issue 10, issue 2 though I need it to ...
0
votes
1answer
124 views
Echo used hierarchical taxonomies parent name
I want to echo my hierarchical taxonomies parents which i used in my posts.
I've see answers about that, but no one didn't help me.
Now i using <?php the_terms( $post->ID, 'mytaxname', '', ' / ...
0
votes
2answers
1k views
Get Current Custom Taxonomy ID by Post ID
If I know the current post id that i have in the variable $pid
I use $terms = get_the_terms($pid, 'custom_category');
How do I get just the term id/term_taxonomy_id
if I var_dump $terms I see what ...
0
votes
1answer
757 views
Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
I'm trying to get the terms of a taxonomy (kind) and the number of content they have but only for a specific category (get_parent_page_slug() = city name = category slug). This is what I have so far:
...