request)); $thisslugmusic = substr($thisurl, strlen(home_url('/music/artist/'))); $artistposts = get_posts( array('post_type' => 'artists', 'posts_per_page' => -1) ); foreach ($artistposts as $artistpost){ $artistid = $artistpost->ID; $artistslug = $artistpost->post_name; $artistname = get_the_title($artistid); if ($thisslugmusic == $artistslug){ get_template_part( 'music-artists' ); } } ?>

Get Widget