-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle.php
More file actions
52 lines (38 loc) · 1.4 KB
/
single.php
File metadata and controls
52 lines (38 loc) · 1.4 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
41
42
43
44
45
46
47
48
49
50
51
52
<?php get_header(); ?>
<?php the_post(); ?>
<section id="content-container">
<article id="main-post">
<h2 id="post-<?php the_ID(); ?>"><a href="/blog/">Blog</a> / <?php the_title(); ?></h2>
<p class="date">
Posted: <time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date( 'F jS, Y \a\t g:ia' ) ); ?></time>
<?php if ( get_the_modified_date() !== get_the_date() ) : ?>
<br />
Updated: <time datetime="<?php echo esc_attr( the_modified_date( 'c' ) ); ?>"><?php echo esc_html( the_modified_date( 'F jS, Y \a\t g:ia' ) ); ?></time>
<?php endif ?>
</p>
<?php the_content( __( '(more...)' ) ); ?>
<?php get_template_part( 'post', 'series-nav' ); ?>
<?php if ( function_exists( 'related_posts' ) ) : ?>
<section class="related">
<h4>Related Articles:</h4>
<ul>
<?php related_posts(); ?>
</ul>
</section>
<?php endif ?>
<p class="meta">
Posted in: <?php the_category( ',' ); ?>
<?php wp_link_pages(); ?>
| <?php comments_popup_link( __( 'Comments (0)' ), __( 'Comments (1)' ), __( 'Comments (%)' ) ); ?>
<?php edit_post_link( 'Edit this', '[', ']' ); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
<?php comments_template(); ?>
<nav id="page-navigation">
<?php posts_nav_link( ' ', __( '« Previous' ), __( 'Next »' ) ); ?>
</nav>
</article>
</section>
<?php get_footer(); ?>