forked from 48Web/wordpress-theme-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
25 lines (21 loc) · 787 Bytes
/
Copy pathsingle.php
File metadata and controls
25 lines (21 loc) · 787 Bytes
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
<?php /* Template Name: Single*/ ?>
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()): while (have_posts()): the_post(); ?>
<div class="post">
<h1><a href="<?php the_permalink() ?>" rel="permalink"><?php the_title(); ?></a></h1>
<div class="post-content">
<?php echo the_content(); ?>
</div>
<?php if(comments_open()): ?>
<div id="comments">
<?php comments_template(); ?>
</div>
<?php endif; ?>
</div><!--#end post-->
<?php endwhile; endif; ?>
</div><!--#end content -->
<div class="sidbear">
<?php get_sidebar(); ?>
</div><!--#end sidebar -->
<?php get_footer(); ?>