I have a following code for the custom post type, and I want to display the content of it inside the loop.
$args = array(
'post_type' => 'gallery',
'posts_per_page' => -1,
'paged' => $paged,
'supress_filters' => false,
);
// Tax query
if ( $gallery_filter_parent ) {
$args['tax_query'] = array( array(
'taxonomy' => 'gallery_cats',
'field' => 'id',
'terms' => $gallery_filter_parent
) );
}
// Get post type ==> gallery
query_posts( $args );
// Loop through gallery items
while ( have_posts() ) : the_post();
get_template_part( 'loop', 'gallery' );
endwhile; ?>