I have looked at multiple posts, but no luck. I need to use the loop how I have it for existing purposes, but I cannot figure out for the life of me how to return the terms of a custom taxonomy within a custom post type. Here is my code:
<?php $loop = new WP_Query( 'post_type' => 'dealmaker_pt', 'taxonomy' => 'topics', 'field' => 'slug', 'terms' => 'dealoftheweek', 'posts_per_page' => 50, 'offset' => 1 ) ); while ( $loop->have_posts() ) : $loop->the_post(); ?> stuffs here <?php endwhile; wp_reset_query(); ?>
My post type is
dealmaker_pt and my taxonomy is
topics and I'm trying to display the specific taxonomy term of
How can I go about doing this?