term_id, 'csco_category_logo', true ); $csco_category_logo_url = wp_get_attachment_image_url( $csco_category_logo, 'thumbnail' ); $csco_category_icon = get_term_meta( $term->term_id, 'csco_category_icon', true ); $csco_category_icon_url = wp_get_attachment_image_url( $csco_category_icon, 'thumbnail' ); ?>

id ) { return; } ob_start(); ?> ', '' ), '', ob_get_clean() ) ); } add_action( 'admin_enqueue_scripts', 'csco_mb_category_enqueue_scripts' ); if ( ! function_exists( 'csco_post_categories' ) ) { /** * Categories list with icon. */ function csco_post_categories() { $home_show_categories = get_theme_mod( 'home_show_categories', false ); $home_categories_heading = get_theme_mod( 'home_categories_heading', esc_html__( 'Explore Trending Topics', 'revision' ) ); $home_categories_filter = get_theme_mod( 'home_categories_filter' ); $home_categories_limit = get_theme_mod( 'home_categories_limit', 8 ); $home_categories = ! empty( $home_categories_filter ) ? explode( ',', $home_categories_filter ) : array(); $args = array( 'taxonomy' => 'category', 'orderby' => 'count', 'order' => 'DESC', 'number' => $home_categories_limit, ); if ( ! empty( $home_categories ) ) { $args['slug'] = $home_categories; $args['orderby'] = 'slug__in'; $args['order'] = 'ASC'; $args['number'] = 0; } $categories = get_categories( $args ); if ( $home_show_categories && ! empty( $categories ) && is_home() ) { ?>

term_id, 'csco_category_icon', true ); ?>
esc_attr( $category->name ), 'title' => esc_attr( $category->name ), ) ); ?>