This commit is contained in:
2021-09-20 01:07:53 +03:00
parent d9c6a87cfe
commit 80da45b1d7
12 changed files with 549 additions and 104 deletions

View File

@@ -16,19 +16,23 @@ $posts = get_posts( array(
) );
# вывод поста
if( $posts ):
if( $posts ):?>
foreach($posts as $post):
setup_postdata( $post );
?>
<div id="events_left">
<?foreach($posts as $post):
setup_postdata( $post );
?>
<div class="event">
<div class="news_date"><?the_time('j F Y');?></div>
<a href="<?php the_permalink(); ?>"><?php the_title();?></a>
</div>
<div class="event">
<div class="news_date"><?the_time('j F Y');?></div>
<a href="<?php the_permalink(); ?>"><?php the_title();?></a>
</div>
<?php endforeach;
<?php endforeach;?>
wp_reset_postdata();
</div>
<?wp_reset_postdata();
endif;