I'm creating an authors site. I'm using a custom post type (Books) to display books. I'm using another custom post type (Reviews) to display reviews on the same page as the corresponding book. I'm sorting books and reviews with a custom taxonomy, with terms such as book1, book2, etc.
On each single book page (
single-books.php), I'm running a second query to display the reviews. So far so good. The problem is how to display ONLY the reviews with the same term as the current book.
How can I get the term from the first query and then run it in the next query?