-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-single.php
56 lines (44 loc) · 1.14 KB
/
content-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
<?php
/**
* content-single.php
*
* Displays a full, single post entry
*
* @package REPLACE_ME Theme
*/
?>
<?php do_action( 'before_single' ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php do_action( 'open_single' ); ?>
<header>
<h1 class="title"><?php the_title(); ?></h1>
</header>
<div class="content">
<?php
the_content( __( 'Read more...', THEME_NAME ) );
wp_link_pages( array(
'before' => '<div class="page-link"><span>' . __( 'Pages:', THEME_NAME ) . '</span>',
'after' => '</div>',
'pagelink' => '%'
) );
?>
</div>
<footer>
<span class="meta">
<?php
// The author byline, internationalized
printf(
__( 'Written by <a href="%1$s" rel="author">%2$s</a> on %3$s at %4$s', THEME_NAME ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ,
get_the_author(),
get_the_date(),
get_the_time()
);
?>
</span>
<?php if ( has_tag() ) : ?><span class="tags"><?php the_tags(); ?></span><?php endif; // has_tags ?>
</ul>
</footer>
<?php do_action( 'close_single' ); ?>
</article>
<?php do_action( 'after_single' ); ?>