Advertisement
alchymyth

category scroll loop

Feb 29th, 2012
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4. <div id="info-title">information</div>
  5.  
  6. <?php if (is_home()){
  7. query_posts('&cat=4');
  8. }?>
  9.  
  10. <?php if (have_posts()) : ?>
  11. <div id="info-container">
  12. <?php while (have_posts()) : the_post(); ?>
  13.  
  14. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  15.  
  16. <h2 id="info-head"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  17.  
  18.  
  19. <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
  20.  
  21. <div class="Category-info">
  22.  
  23. <?php the_content(); ?>
  24. </div><!--cat info close-->
  25.  
  26. <div class="postmetadata">
  27. <?php the_tags('Tags: ', ', ', '<br />'); ?>
  28. Posted in <?php the_category(', ') ?> |
  29. <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
  30. </div>
  31.  
  32.  
  33. </div>
  34.  
  35.  
  36.  
  37. <?php endwhile;
  38. wp_reset_query(); ?>
  39.  
  40. </div> <!-- info container end-->
  41.  
  42. <?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
  43.  
  44. <?php else : ?>
  45.  
  46. <h2>Not Found</h2>
  47.  
  48. <?php endif; ?>
  49.  
  50.  
  51.  
  52.  
  53. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement