Advertisement
Guest User

Untitled

a guest
Nov 13th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <?php if (have_posts()) : ?>
  2.  
  3. <?php
  4. global $post;
  5. $the_newest = get_posts('numberposts=6');
  6. $the_newer = get_posts('numberposts=6&offset=6');
  7. ?>
  8.  
  9. <?php foreach($the_newest as $post) :
  10. setup_postdata($post); ?>
  11.  
  12. <li <?php post_class($style) ?>><a href="#" onClick="showHide('show<?php the_ID(); ?>')"></a></li>
  13.  
  14. <?php endforeach; ?>
  15.  
  16. <?php foreach($the_newest as $post) :
  17. setup_postdata($post); ?>
  18.  
  19. <div class="work_expand" id="show<?php the_ID(); ?>" style="display:none;">
  20. </div>
  21.  
  22. <?php endforeach; ?>
  23. <?php foreach($the_newer as $post) :
  24. setup_postdata($post); ?>
  25.  
  26. <li <?php post_class($style) ?>><a href="#" onClick="showHide('show<?php the_ID(); ?>')"></a></li>
  27.  
  28. <?php endforeach; ?>
  29.  
  30. <?php foreach($the_newer as $post) :
  31. setup_postdata($post); ?>
  32.  
  33. <div class="work_expand" id="show<?php the_ID(); ?>" style="display:none;">
  34. </div>
  35.  
  36. <?php endforeach; ?>
  37.  
  38. </div>
  39.  
  40. <?php else : ?>
  41.  
  42. <?php endif; ?>
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement