I have setup a custom post type with a custom taxonomy as categories.
But I can't quite figure out how to use it in comparison to
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
Hello here is an example i have used :
<?php while ( have_posts() ) : the_post(); $category = get_the_terms( $id, 'event_category' ); //get First Category $firstCategory = $category; //get category link $category_link = get_category_link($firstCategory->term_id); //echo category name echo $firstCategory->name; endwhile; ?>
change event_category with your taxonomy slug