add landing

This commit is contained in:
2025-06-19 16:12:53 +03:00
parent cd0c2b9f97
commit 0c4e403479
13 changed files with 469 additions and 19 deletions

24
rfo/news-landing.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
$args = array(
'category__in' => 3700,
'post__not_in' => array($current_post_id),
'posts_per_page' => 3,
);
$related_posts_query = new WP_Query($args);
if ($related_posts_query->have_posts()) {
echo '<div class="related-posts">';
echo '<div class="articles-preview-rfo">';
while ($related_posts_query->have_posts()) {
$related_posts_query->the_post();
get_template_part('content', 'post-rfo');
}
echo '</div>';
echo '</div>';
wp_reset_postdata();
}