Home › Forums › Pro Support › Possible to show posts by taxonomy, rather than by specific terms? › Reply To: Possible to show posts by taxonomy, rather than by specific terms?
March 19, 2018 at 8:59 pm
#3922
Keymaster
K, that’s the issue.
Let’s try this instead:
$terms = get_the_terms( get_the_ID(), 'your-taxonomy' );
if ( !empty( $terms ) ){
// get the first term
$term = array_shift( $terms );
$term_slug = $term->slug;
}
wpsp_display( 1508, 'tax_term="' . $term_slug . '"' );