$popular_posts_content_type, 'post__in' => array_filter( $content_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint( 5 ), 'ignore_sticky_posts' => true, ); } else { $cat_content_id = get_theme_mod( 'blog_talk_popular_posts_category' ); $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 5 ), ); } $query = new WP_Query( $args ); if ( $query->have_posts() ) { $section_title = get_theme_mod( 'blog_talk_popular_posts_title', __( 'Popular Posts', 'blog-talk' ) ); $section_subtitle = get_theme_mod( 'blog_talk_popular_posts_subtitle', '' ); $button_label = get_theme_mod( 'blog_talk_popular_posts_button_label', __( 'Read More', 'blog-talk' ) ); ?>