-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
62 lines (40 loc) · 1.82 KB
/
single.php
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
53
54
55
56
57
58
59
60
61
62
<?php get_header(); ?>
<section class="main-column">
<?php while(have_posts()) : the_post(); ?>
<article class="post" id="<?php the_ID(); ?>">
<header>
<h1 class="post-title"><?php the_title(); ?></h1>
<div class="excerpt">
<?php the_excerpt(); ?>
</div>
</header>
<section class="entry clearfix">
<?php the_content(); ?>
</section>
<footer>
<?php wp_link_pages(); ?>
<?php edit_post_link(); ?>
<!-- Post Meta Start -->
<div class="meta-column clearfix" id="post-time"><span class="meta-title">Posted:</span> <time datetime="<?php the_time('c'); ?>"><a href="<?php echo get_month_link('', ''); ?>" title="Archive for this month"><?php the_time(get_option('date_format')); ?></a> at <?php the_time(get_option('time_format')); ?></time></div>
<div class="meta-column clearfix" id="post-author"><span class="meta-title">Author:</span> <a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a></div>
<div class="meta-column clearfix" id="post-categories"><span class="meta-title">Categories: </span> <?php the_category(' '); ?></div>
<div class="meta-column clearfix" id="post-tags"><span class="meta-title">Tags:</span> <?php the_tags(' '); ?></div>
<div class="meta-column clearfix" id="post-meta">
<span class="meta-title">Meta:</span> <?php the_meta(); ?>
</div>
<!-- Post Meta End -->
</footer>
</article> <!-- .post -->
<div id="comment-area">
<?php comments_template(); ?>
</div>
<div class="post-nav">
<ul class="clearfix">
<li class="leftx"><?php previous_post_link() ?></li>
<li class="rightx"><?php next_post_link(); ?></li>
</ul>
</div>
<?php endwhile; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>