add landing
This commit is contained in:
33
rfo/end-interview.php
Normal file
33
rfo/end-interview.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php $args = array(
|
||||
'category_name' => 'rfo', // или 'category_id' => X
|
||||
'posts_per_page' => 1,
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC'
|
||||
);
|
||||
|
||||
$last_post = new WP_Query($args);
|
||||
|
||||
if ($last_post->have_posts()) {?>
|
||||
|
||||
<div class="content-rfo">
|
||||
|
||||
<?//while ($last_post->have_posts()) {?>
|
||||
|
||||
<div class="article-item-wrapper__rfo">
|
||||
<div class="land-cart-title">
|
||||
<div class="land-cart-title__text">Интервью</div>
|
||||
<div class="land-cart-title__arrow"></div>
|
||||
</div>
|
||||
<div class="article-item-rfo item-rfo-zh">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?//}?>
|
||||
</div>
|
||||
<?wp_reset_postdata(); // Сбрасываем данные поста
|
||||
}
|
||||
Reference in New Issue
Block a user