'post', 'posts_per_page' => 50, 'post__not_in' => get_option("sticky_posts"))); $tag_lists = array(); if ($latest_post_query->have_posts()): while ($latest_post_query->have_posts()): $latest_post_query->the_post(); $tags = get_the_tags(get_the_ID()); if ($tags) { foreach ($tags as $tag) { if (!in_array($tag->term_id, $tag_lists)) { $tag_lists[$tag->term_id] = $tag->count; } } } endwhile; endif; arsort($tag_lists); $show_top_tagged_section = avenews_get_option('show_top_tagged_section'); $top_tagged_title = avenews_get_option('top_tagged_title'); $top_tagged_number = avenews_get_option('top_tagged_number'); if ($show_top_tagged_section) { ?>