Wondering if anyone can help.
I'm putting together a site which features music reviews, amongst other things. The set up is built on a custom post type and a number of associated taxonomies.
- release date
On a page displaying an album review (
my_albumreviews post type ), under the main content I need a section which shows "Other reviews from this artist". I think I'm along the right lines with this but just can't get it to work.
$artistname = get_the_terms($post->ID, 'artist'); $args = array( 'post_type'=>'my_albumreviews', 'tax_query'=>array(array('taxonomy'=>'artist', 'field'=>'id', 'terms'=> '$artistname' )) ); $artist_reviews = new WP_query($args);
This is then followed by..
while ($artist_reviews->have_posts()) : $artist_reviews->the_post();
..which returns nothing to the page.
Any help would be much appreciated.