Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*-----------------------------------------------------------------------------------*/
- /* Start Single loop
- /*-----------------------------------------------------------------------------------*/
- if( is_single() ) {
- ?>
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <article class="post">
- <h1 class="title"><?php the_title() ?></h1>
- <div class="meta clearfix">
- <div class="category"><?php echo get_the_category_list(); ?></div>
- <div class="tags"><?php echo get_the_tag_list( '| ', ' ' ); ?></div>
- </div><!--/post-meta -->
- <div class="the-content">
- <?php the_content( 'Continue...' ); ?>
- <?php wp_link_pages(); ?>
- </div><!-- the-content -->
- </article>
- <?php endwhile; ?>
- <!-- pagintation -->
- <div id="pagination" class="clearfix">
- <div class="past-page"><?php previous_posts_link( 'Newer »' ); ?></div>
- <div class="next-page"><?php next_posts_link( ' « Older' ); ?></div>
- </div><!-- pagination -->
- <?php else : ?>
- <article class="post error">
- <h1 class="404">Nothing posted yet</h1>
- </article>
- <?php endif; ?>
- <?php } //end is_single(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement