'category', 'number' => 4, 'include' => array_filter( $content_ids ), 'orderby' => 'include', 'hide_empty' => false, ); $terms = get_terms( $args ); $i = 1; foreach ( $terms as $value ) { $data['title'] = $value->name; $data['count'] = $value->count; $data['permalink'] = get_term_link( $value->term_id ); $data['thumbnail_url'] = get_theme_mod( 'ascendoor_blog_category_category_image_' . $i, '' ); array_push( $section_content, $data ); $i++; } $section_content = apply_filters( 'ascendoor_blog_categories_section_content', $section_content ); ascendoor_blog_render_categories_section( $section_content ); /** * Render Categories Section */ function ascendoor_blog_render_categories_section( $section_content ) { $content_type = get_theme_mod( 'ascendoor_blog_categories_content_type', 'post' ); $categories_title = get_theme_mod( 'ascendoor_blog_categories_title', __( 'Categories', 'ascendoor-blog' ) ); $categories_subtitle = get_theme_mod( 'ascendoor_blog_categories_subtitle', '' ); ?>