2021-09-16 12:14:35 +03:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* The main template file.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
|
2021-09-18 01:30:09 +03:00
|
|
|
|
2021-09-16 12:14:35 +03:00
|
|
|
<div id="main">
|
2021-09-18 01:30:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php $query = new WP_Query(
|
|
|
|
|
array('category__not_in' => array(2, 18 ,44)
|
|
|
|
|
)); # фильтруем рубрики
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
|
|
<h1 class="my-4">Главное</h1>
|
|
|
|
|
|
|
|
|
|
<?php if($query->have_posts()) : while($query->have_posts()) : $query->the_post();?>
|
|
|
|
|
|
|
|
|
|
<div class="card mb-4">
|
|
|
|
|
<a href="<?the_permalink();?>"><img class="card-img-top" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
|
|
|
|
|
<h2 class="card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<p class="card-text"><a href="<?the_permalink();?>"><?the_excerpt();?></a></p>
|
|
|
|
|
<div class="news_date"><?the_time('j F Y, G:i');?></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php endwhile;?>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
|
2021-09-16 12:14:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php get_footer(); ?>
|