TICA_News::POST_TYPE, 'paged' => $paged, //'page' => $page, ]; $category = get_query_var( TICA_News::TAXONOMY_NAME ); if ( $category ) { $query['tax_query'][] = [ 'taxonomy' => TICA_News::TAXONOMY_NAME, 'field' => 'slug', 'terms' => $category, ]; } $wp_query = new WP_Query( $query ); if ( $wp_query->have_posts() ) : ?>
> have_posts() ) : $wp_query->the_post(); global $post; ?> $wp_query ) ); ?>