-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloop-single.php
More file actions
executable file
·37 lines (37 loc) · 1.32 KB
/
loop-single.php
File metadata and controls
executable file
·37 lines (37 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php /* Start loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php wpbp_post_before(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php wpbp_post_inside_before(); ?>
<header class="post-header">
<h1 class="post-title">
<?php the_title(); ?>
</h1>
<div class="post-meta">
<time class="post-date updated" datetime="<?php the_time( 'c' ); ?>">
<?php printf( __( 'Posted on %s', 'wpbp' ), get_the_time( __( 'l, F jS, Y', 'wpbp' ) ) ); ?>
</time>
<span class="post-author byline author vcard">
<?php _e( 'by', 'wpbp' ); ?> <?php the_author_posts_link(); ?>
</span>
</div>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<div class="post-thumbnail">
<?php the_post_thumbnail( 'large' ); ?>
</div>
<?php endif; ?>
<div class="post-content">
<?php the_content(); ?>
</div>
<footer class="post-footer">
<?php wp_link_pages( array( 'before' => '<nav id="page-nav"><p>' . __( 'Pages:', 'wpbp' ), 'after' => '</p></nav>' ) ); ?>
<p class="post-tags"><?php the_tags(); ?></p>
</footer>
<section class="post-comments">
<?php comments_template(); ?>
</section>
<?php wpbp_post_inside_after(); ?>
</article>
<?php wpbp_post_after(); ?>
<?php endwhile; // End the loop ?>