<?php $args = array(
'posts_per_page' => 9,
'post_type' => 'tour',
'tax_query' => array(
array(
'taxonomy' => 'tours',
'field' => 'term_id',
'terms' => 78,
'operator' => 'NOT IN',
))
); $lastposts = get_posts( $args );
foreach( $lastposts as $post ) { setup_postdata( $post ); ?>
<div class="wrapper-col3">
<div class="news-col">
<a href="<?php the_permalink(); ?>" class="block-news uk-cover-container"><img src="<?php the_post_thumbnail_url('slider'); ?>" loading="lazy" alt="image" uk-cover></a>
<a href="<?php the_permalink(); ?>" class="block-news_title font-style-NotoSerif font-style-h3"><?php the_title(); ?></a>
<div class="block-news_text font-style-grey"><?php the_excerpt(); ?></div>
</div>
</div>
<?php } wp_reset_postdata(); ?>
<?php
$args = array(
'numberposts' => -1,
'post_type' => 'tour',
'category_name' => '',
'tax_query' => array(
array(
'taxonomy' => 'tours',
'field' => 'id',
'terms' => 78,
))
);
$querys = new WP_Query( $args );
while ( $querys->have_posts() ) { $querys->the_post(); ?>
<div class="wrapper-col3">
<div class="news-col">
<a href="<?php the_permalink(); ?>" class="block-news uk-cover-container"><img src="<?php the_post_thumbnail_url('slider'); ?>" loading="lazy" alt="image" uk-cover></a>
<a href="<?php the_permalink(); ?>" class="block-news_title font-style-NotoSerif font-style-h3"><?php the_title(); ?></a>
<div class="block-news_text font-style-grey"><?php the_excerpt(); ?></div>
</div>
</div>
<?php } wp_reset_postdata(); ?>
<tr class="cart-order">
<td>
<b>[[+name]]</b>
</td>
<td>
[[+addit_data:default=`—`]]
</td>
<td>
[[+count]] шт.
</td>
<td>
[[+price]] [[+currency]]
</td>
</tr>
вот в таком варианте у меня все сработало, если кому пригодиться