displaying content of custom post type
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; ?
Topic post-content custom-content loop posts custom-post-types Wordpress
Category Web