<ul><?php $id = 1;wp_reset_query();$args = array( 'post_type' => 'download', 'post_status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'download_category', 'field' => 'term_id', 'terms' => $id, 'operator' => 'IN', ) ));$the_query = new WP_Query( $args );if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li> <?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(''); ?> </a> <?php } ?> <h3> <a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a> </h3> <span class="amount"><?php echo edd_price($post->ID); ?></span> <?php if ( ! edd_has_variable_prices( get_the_ID() ) ) { echo edd_get_purchase_link( array( 'id' => get_the_ID(), 'style'=> 'plain', 'class'=>'button add_to_cart_button product_type_simple', 'price' =>false, 'text' => 'افزودن به سبد خرید' )); } else { ?> <a class="blue button add_to_cart_button product_type_simple" href="<?php the_permalink(); ?>"> <span class="edd-add-to-cart-label">مشاهده محصول</span> </a> <?php // echo edd_get_purchase_link( array( 'id' => get_the_ID(), 'style'=> 'plain', 'class'=>'button add_to_cart_button product_type_simple', 'price' =>false, 'text' => 'افزودن به سبد خرید' )); } ?> </li> <?php endwhile; endif;wp_reset_query();?> </ul>خط سوم آیدی دسته edd رو جایگزین کنید .