Run next query based on first query’s term
If I understand correctly, the book and the reviews share same taxonomy. Then is just a matter of get the taxonomy term for the book in the single-books.php, save it in a variable and then run a query using that variable for the ‘tax_query’: if ( have_posts() ) { the_post(); // get the term for … Read more