' . esc_html($album_sec_title) . ''; ?>
'post', 'posts_per_page' => 3, 'post_status' => 'publish', 'order' => 'desc', ); } else { $args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'post_status' => 'publish', 'order' => 'desc', 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'category', 'field' => 'slug', 'terms' => array( $album_cat ), ), ), ); } $query = new WP_Query($args); if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); global $post; $post_format = get_post_format($post->ID); $post_thumbnail_id = get_post_thumbnail_id(get_the_ID()); $image = wp_get_attachment_image_src($post_thumbnail_id, 'full'); ?>