-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
47 lines (28 loc) · 1000 Bytes
/
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
<?php get_template_part('header-post'); ?>
<main>
<!-- section -->
<section>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="article-content"><?php the_content(); // Dynamic Content ?></div>
<?php the_tags( __( 'Tags: ', 'sebastianbrandes' ), ', ', '<br>'); // Separated by commas with a line break at the end ?>
<p><?php _e( 'Categorized in: ', 'sebastianbrandes' ); the_category(', '); // Separated by commas ?></p>
<?php edit_post_link(); // Always handy to have Edit Post Links available ?>
<hr />
<?php comments_template(); ?>
</article>
<!-- /article -->
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h1><?php _e( 'Sorry, nothing to display.', 'sebastianbrandes' ); ?></h1>
</article>
<!-- /article -->
<?php endif; ?>
</section>
<!-- /section -->
</main>
<?php get_sidebar(); ?>
<?php get_footer(); ?>