-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop.php
16 lines (16 loc) · 830 Bytes
/
loop.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permalink to', 'resblogsive'); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<p class="meta">
<time datetime="<?php the_time( get_option( 'date_format' ) ); ?>"> <?php _e('published on', 'resblogsive') ?> <?php the_time( get_option( 'date_format' ) ); ?></time>.
<?php
printf(_nx('1 comment', '%1$s comments', get_comments_number(), 'comments title', 'resblogsive'), number_format_i18n(get_comments_number()));
?>
</p>
</article>
<?php endwhile; ?>
<?php else : ?>
<h2><?php _e('Nothing Found', 'resblogsive'); ?></h2>
<?php endif; ?>