count ?? ''; $term_name = $cat_info->name ?? ''; $thumbnail_id = get_term_meta($cat_info->term_id ?? '', 'thumbnail_id', true); ?>
'post', 'post_status' => 'publish', 'no_found_rows' => true, 'ignore_sticky_posts' => true, 'posts_per_page' => 1, 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => absint($cat_info->term_id), ), ), ); $category_post = new WP_Query($category_post_args); // Display the latest post if ($category_post->have_posts()) : while ($category_post->have_posts()) : $category_post->the_post(); ?>