<?php
global $post;
$args = array('numberposts' => 9, 'category' => 1, 'orderby' => 'date');
$myposts =get_posts( array(
'numberposts' => 2,
'category' => 0,
'orderby' => 'date',
'order' => 'DESC',
'include' => array(),
'exclude' => array(),
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'post',
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
) );
foreach ($myposts as $post) {
setup_postdata($post);
?>
<div class="item">
<div class="row align-center j-space">
<div class="img"><?php the_post_thumbnail(array(208, 180), 'thumbnail'); ?></div>
<div class="text-block column">
<div class="title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
<div class="text">
<?php the_excerpt() ?>
</div>
</div>
</div>
</div>
<?php
}
wp_reset_postdata();
?>