-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle.php
More file actions
40 lines (26 loc) · 1.1 KB
/
single.php
File metadata and controls
40 lines (26 loc) · 1.1 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
38
39
40
<?php get_header(); ?>
<section id="main" role="main">
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<header class="entry-header">
<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
<div class="meta">
<span class="author vcard">Published by <?php the_author_posts_link(); ?></span>
<span class="date updated"><?php the_time('j/F/Y'); ?></span>
<span class="cat"><?php the_category(', '); ?></span>
<?php if ( comments_open() ) : ?>
<span class="comments"><?php comments_popup_link( __( 'Leave your thoughts' ), __( '1 Comment' ), __( '% Comments' )); ?></span>
<?php endif; ?>
</div>
</header>
<div class="entry-content"><?php the_content(); ?></div>
</article>
<?php if (comments_open()) comments_template(); ?>
<?php endwhile; ?>
</section>
<?php get_footer(); ?>