Displaying Custom Taxonomy Category Data
-
If I use the below, I get my standard category ID by slug.
<?php $catId = get_term_by( 'slug', 'test', 'category' ); $catId = $catId->term_id; print_r($catId) ?>
But What I need is the ID of my custom taxonomy categories for my custom post_type. How would I do that?
Custom taxonomy is:
taxonomy = event-categories
post_type = event
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Displaying Custom Taxonomy Category Data’ is closed to new replies.