Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?> <!--Call the header.php-->
- <?php if (is_single() || is_archive()) {get_sidebar();} ?><!--Call the sidebar if its not a page-->
- <div id="content">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><!--The print post loop-->
- <?php if (!is_page()) { ?><!--Pages jump over the h2 to the curly brackets -Function- removes titles from pages-->
- <h2> <?php if( !is_singular() ) { ?> <a href="<?php the_permalink() ?>" > <?php } the_title(); if( !is_singular() ) { ?></a> <?php } ?></h2><!-- List post title links-->
- <?php } ?><?php if(is_archive()) { the_excerpt(); } else { the_content(); } ?><!--List the excerpts or full content for posts or pages-->
- <?php endwhile; ?><!--end of the loop-->
- <?php posts_nav_link(' - ','« Prev','Next »') ?> <!--Prev Next post page links-->
- <?php if (is_single()) {comments_template();} ?> <!--Call comments.php if it is a post-->
- <?php else : ?>Nothing Here<?php endif; ?> <!--bad url-->
- </div><!--End content div-->
- <?php get_footer(); ?><!--Call the footer.php-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement