'post',
'posts_per_page' => 2,
'post_status' => 'publish',
'order' => 'desc',
'orderby' => 'menu_order date',
);
} else {
$args = array(
'post_type' => 'post',
'posts_per_page' => 2,
'post_status' => 'publish',
'order' => 'desc',
'orderby' => 'menu_order date',
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => array( $explore_category ),
),
),
);
} ?>
' . esc_html($explore_title) . '';
if ($explore_desc)
echo '
' . esc_html($explore_desc) . '
';
?>
have_posts()) :
?>
have_posts()) : $recent_query->the_post();
global $post;
$post_thumbnail_id = get_post_thumbnail_id(get_the_ID());
$image = wp_get_attachment_image_src($post_thumbnail_id, 'full');
$content = get_the_content();
if (!empty($image)) {
$image_style = "style='background-image:url(" . esc_url($image[0]) . ")'";
} else {
$image_style = '';
}
?>
-