Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ): ?>
- <ul>
- <?php while ( have_posts() ): the_post(); ?>
- <li class="col-sm-6">
- <div class="post-thumb">
- <?php the_post_thumbnail( $size, $attr ); ?>
- </div>
- <div class="post-content">
- <h3><?php the_title(); ?></h3>
- <div class="post-date">
- <i class="far fa-calendar-alt"></i> <?php echo get_the_date(); ?>
- </div>
- <div class="posts-list-content">
- <p><?php the_excerpt(); ?></p>
- </div>
- </div>
- <div class="read-more">
- <a href="<?php the_permalink(); ?>">more</a>
- </div>
- </li>
- <?php endwhile; ?>
- </ul>
- <?php else: ?>
- <p>Сорян, записей нет.</p>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement