Tagged Questions
0
votes
1answer
25 views
How to add a post counter to the list of custom taxonomy terms?
I am using the below code to display the list (radio buttons) of terms that are currently used by existing custom post type posts:
$args = array(
'taxonomy' => 'typ',
'post_type' => ...
1
vote
2answers
58 views
Have a Custom Post Type index page display taxonomy items instead of posts
I have a CPT registered that is called lessons with a custom taxonomy (category) that is called courses. I want the /courses page (archive-courses.php?) to display the individual courses (i.e. "online ...
0
votes
1answer
36 views
Retrieve Custom Taxonomies with Description and Slug
I've been looking to grab a list of custom taxonomies for a custom post type with the titles, descriptions and tag but have not been able to progress or find anything helpful.
Breakdown:
I have ...
0
votes
2answers
190 views
Display current taxonomy term when inside custom post type
Well, this should be pretty simple, however I couldn't find answer anywhere on the web. all answers I found were close but no exactly what I needed.
what I need is to display just the current term of ...
0
votes
1answer
193 views
Displaying custom taxonomy in the admin list of a custom post type
I'm trying to list the terms of a custom taxonomy ('genre') in the overview table in the admin area for a custom post type ('station'). To get this, I tried the following code in my theme's ...
4
votes
2answers
1k views
get_terms by custom post type
I have two custom post types 'country' and 'city' and a shared taxonomy 'flag'.
If I use:
<?php $flags = get_terms('flag', 'orderby=name&hide_empty=0');
I get a list of all terms in the ...
0
votes
1answer
756 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:
...