-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
61 lines (33 loc) · 1.28 KB
/
single.php
File metadata and controls
61 lines (33 loc) · 1.28 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
53
54
55
56
57
58
59
60
61
<?php get_header(); ?>
<main class="wrapper">
<section>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail()) : // Does the post have a thumbnail? ?>
<span class="post-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(); ?></a>
</span>
<?php endif; ?>
<h1><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<span class="date">
<time datetime="<?php the_time('Y-m-d'); ?> <?php the_time('H:i'); ?>">
<?php the_date(); ?> <?php the_time(); ?>
</time>
</span>
<span class="author">Published by <?php the_author_posts_link(); ?></span>
<?php the_content(); ?>
<?php the_tags( __( 'Tags: ', 'ren' ), ', ', '<br>'); // Separated by commas with a line break at the end ?>
<p>Categorized in <?php the_category(', '); ?></p>
<p>This post was written by <?php the_author(); ?></p>
<?php edit_post_link(); ?>
<?php comments_template(); ?>
</article>
<?php endwhile; ?>
<?php else: ?>
<article>
<h2>No Posts Found</h2>
</article>
<?php endif; ?>
</section>
</main>
<?php get_footer(); ?>