7, 'post_type' => 'post', 'order' => esc_attr(get_theme_mod( 'anews_home_scat_order' )), 'tax_query' => array( array( 'taxonomy' => 'category', 'terms' => get_theme_mod( 'anews_home_scat_select' ), 'field' => 'term_id', ) ) )); }else{ $p = new \WP_Query( array( 'posts_per_page' => 7, 'post_type' => 'post', 'order' => 'ASC', )); } $anews_scategorys = get_theme_mod( 'anews_home_scat_select' ); ?>
  • slug).'">'.esc_html($cat_info->name).''; }?>
'name', 'order' => 'ASC', 'parent' => 0 ); $anews_hpost_cats = get_categories($args); if( !empty($anews_hpost_cats) && ! is_wp_error( $anews_hpost_cats ) ) : ?>
  • slug).'">'.esc_html($anews_hpost_cat->name).''; }?>
have_posts() ): $p->the_post(); $anews_current_index = $p->current_post+1; $anews_cols = ($anews_current_index % 7 == 1) ? '6 cfull color2 ' : '3 small-list color4 '; $anews_pcat_catagory = get_the_terms( get_the_ID(), 'category' ); if ( $anews_pcat_catagory && ! is_wp_error( $anews_pcat_catagory ) ) { $anews_pcat_cat_list = array(); foreach ( $anews_pcat_catagory as $anews_pcat_cat ) { $anews_pcat_cat_list[] = $anews_pcat_cat->slug; } $anews_pcat_catshow = join( " ", $anews_pcat_cat_list ); }else{ $anews_pcat_catshow = ''; } ?>