add files

This commit is contained in:
2026-01-08 20:53:00 +03:00
commit a1393e8b13
19 changed files with 970 additions and 0 deletions

View 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; ?>