'post',
'posts_per_page' => esc_attr( $postCount ),
'post_status' => 'publish'
);
if( !empty( $postCategory ) ) {
$list_post_args['category_name'] = $postCategory;
}
$list_post_query = new WP_Query( $list_post_args );
if( ! $list_post_query->have_posts() ) {
esc_html_e( 'No posts found', 'armonia' );
}
while( $list_post_query->have_posts() ) : $list_post_query->the_post();
$singlepost_id = get_the_ID();
$blockCategories = get_the_category( $singlepost_id );
$tags = get_the_tags( $singlepost_id );
$format = get_post_format() ? : 'standard';
?>