add files
This commit is contained in:
13
template-parts/content-cards.php
Normal file
13
template-parts/content-cards.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
// template-parts/content-cards.php
|
||||
|
||||
// Проверяем, есть ли записи в текущем запросе
|
||||
if (have_posts()) : ?>
|
||||
<div class="news-block">
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<?php get_template_part('template-parts/content', 'card'); ?>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<p>Записей не найдено.</p>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user