'post', 'paged' => $postpage, ); $main_query = new WP_Query( $args2 ); if ( have_posts() ) { while ( $main_query->have_posts() ) { $main_query->the_post(); global $post; $postType = get_post_meta( get_the_ID(), 'media', true ); if ( $postType == 'gallery' ) { $postType = 'gallery'; } elseif ( $postType == 'video' ) { $postType = 'video'; } elseif ( $postType == 'video_gallery' ) { $postType = 'video'; } elseif ( $postType == 'audio' ) { $postType = 'audio'; } elseif ( $postType == 'audio_gallery' ) { $postType = 'audio'; } elseif ( $postType == 'quote' ) { $postType = 'quote'; } else { $postType = 'standard'; } ?>
>