I need a way to show posts that belong to the same custom taxonomy terms as the current post.
For example, if the current taxonomy of a post contains the term “Convertible Cars”, can I show all other posts that also share that same term, without having to create a unique WP Show Post ID for Categories > Convertible Cars which I’ll then have to copy manually into each and every post about convertible cars?
I tried this but it’s not working, perhaps because I need it to look for terms within 1 of 4 custom taxonomies I’m using.
<?php
$term_slug = get_queried_object()->slug;
wpsp_display( 1508, 'tax_term="' . $term_slug . '"' );
?>
(1508 is the ID of my post list)
Maybe this code needs to be modified to define the custom taxonomy name I’m using for this?