Advertisement
alchymyth

code

Aug 30th, 2011
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. Template Name: Blog
  5. */
  6. ?>
  7.  
  8. <?php get_header(); ?>
  9.  
  10.  
  11.  
  12. <?php remove_filter ('the_content', 'wpautop'); ?>
  13.  
  14. <div id="contentBlog"><!-- start left page content-->
  15.  
  16. <?php
  17. $paged = (intval(get_query_var('paged')) ? intval(get_query_var('paged')) : 1 );
  18. query_posts("posts_per_page=5&paged=$paged"); ?>
  19.  
  20. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  21.  
  22.  
  23.  
  24. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  25.  
  26. <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
  27.  
  28.  
  29.  
  30. <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
  31.  
  32. <div class="entry">
  33.  
  34. <p><?php the_excerpt(); ?></p>
  35.  
  36. </div>
  37.  
  38.  
  39. </div>
  40.  
  41. <?php endwhile; ?>
  42.  
  43. <?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
  44.  
  45. <?php else : ?>
  46.  
  47. <h2>Not Found</h2>
  48.  
  49. <?php endif; ?>
  50.  
  51.  
  52. </div> <!-- end content left -->
  53.  
  54.  
  55. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement