sol community query
// WP_Query arguments
$args = array(
'post_type' => array( 'solstice_communities' ),
'post_status' => array( 'published' ),
'tax_query' => array(
array(
'taxonomy' => 'community_blog_id',
'terms' => '$current_blog_id',
'field' => 'name',
),
),
);
// The Query
$community_query = new WP_Query( $args );
// The Loop
if ( $community_query->have_posts() ) {
while ( $community_query->have_posts() ) {
$community_query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();