<?php

$posts = get_posts( array(
	'numberposts' => 1,
	'category'    => 3, // 19 - архив газеты
	'orderby'     => 'date',
	'order'       => 'DESC',
	'include'     => array(),
	'exclude'     => array(),
	'meta_key'    => '',
	'meta_value'  =>'',
	'post_type'   => 'post',
	'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
) );

# вывод поста
if( $posts ):

    foreach($posts as $post):
       setup_postdata( $post );
    ?>

	<div class="right_archive">	
		<a href="<?php the_permalink(); ?>"><img width="147"  class="right_archive_img" src="<?php echo get_the_post_thumbnail_url($post, 'fil');?>" alt="<?the_title();?>"></a>
   		<div class="right_archive_text"><a href="<?php the_permalink(); ?>"><?=vij_lang('gazeta', LANG_VERSION);?></a></div>
		<?if (LANG_VERSION == 'ru'):?>   
			<div class="right_archive_link"><a href="<?php the_permalink(); ?>"><?=the_title();?></a></div>
		<?endif?>	
		<br>
		<center class="left_center_block">
        	<a href="https://vetandlife.ru/category/arkhiv/" class="left_button" target="_blank"><?=vij_lang('archives', LANG_VERSION);?></a>
		</center>
	</div>	
		   

    <?php endforeach;

    wp_reset_postdata();?>

<?php endif;
