'post', 'posts_per_page' => 6, 'post_status' => 'publish', 'order' => 'desc', 'orderby' => 'menu_order date', 'paged' => $paged, ]; } else { $args = [ 'post_type' => 'post', 'posts_per_page' => 6, 'post_status' => 'publish', 'order' => 'desc', 'orderby' => 'menu_order date', 'paged' => $paged, 'tax_query' => [ 'relation' => 'AND', [ 'taxonomy' => 'category', 'field' => 'slug', 'terms' => [$sidebar_blog_category], ], ], ]; } ?>
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, 'awe-blog-blog-thumbnail-img' ); $content = get_the_content(); if (!empty($image)) { $image_style = "style='background-image:url(" . esc_url($image[0]) . ")'"; } else { $image_style = ''; } ?>

post->ID, $content_length ) ); ?>

max_num_pages; if ($max_posts > 1) { $current_page = max(1, get_query_var('page')); echo ''; } wp_reset_postdata(); ?>