سلام @unid_user
بفرمایید
<?php
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'posts_per_page' => '15',
'order' => 'DESC',
'orderby' => 'ID',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'term_id',
'terms' => '5', // cat id
),
),
'paged' => ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1,
);
$post_cat = new WP_Query( $args );
if ( $post_cat->have_posts() ) { ?>
<?php while ( $post_cat->have_posts() ) : $post_cat->the_post(); ?&g