Advertisement
Guest User

showpost blunder

a guest
Oct 21st, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php if (get_option('estore_scroller') == 'on') include(TEMPLATEPATH . '/includes/scroller.php'); ?>
  4. <!-- this is the inclued-->
  5. <div class="clearfix">
  6. <?php
  7. $reciente = new WP_Query(
  8. "cat=50&showposts=1"
  9. );
  10. while($reciente->have_posts()) : $reciente->the_post();?>
  11.  
  12. <h2 class="title"><!-- to check style<a href="<?php the_permalink() ?>">--><?php the_title(); ?><!--</a>--></h2>
  13. <div class="beaver-welcome">
  14. <p>
  15. <?php the_excerpt(''); ?>
  16. </p>
  17. </div>
  18. <?php endwhile; ?>
  19. </div>
  20. <!-- end of include-->
  21. <?php
  22. $args=array(
  23. 'showposts'=>get_option('estore_homepage_posts'),
  24. 'paged'=>$paged,
  25. 'category__not_in' => get_option('estore_exlcats_recent'),
  26. );
  27. if (get_option('estore_duplicate') == 'false') $args['post__not_in'] = $ids;
  28. query_posts($args); ?>
  29.  
  30. <div id="main-area">
  31.  
  32. <div id="main-content" class="clearfix">
  33.  
  34. <div id="left-column">
  35.  
  36. <?php $i = 1; ?>
  37. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  38. <?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
  39. <?php $i++; ?>
  40. <?php endwhile; ?>
  41. <?php if (($i-1) % 3 <> 0) echo('<div class="clear"></div>'); ?>
  42. <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  43. else { ?>
  44. <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
  45. <?php } ?>
  46. <?php else : ?>
  47. <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
  48. <?php endif; wp_reset_query(); ?>
  49.  
  50. </div> <!-- #left-column -->
  51.  
  52. <?php get_sidebar(); ?>
  53.  
  54. <?php get_footer(); ?>
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement