Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : ?>
- <?php
- global $post;
- $the_newest = get_posts('numberposts=6');
- $the_newer = get_posts('numberposts=6&offset=6');
- ?>
- <?php foreach($the_newest as $post) :
- setup_postdata($post); ?>
- <li <?php post_class($style) ?>><a href="#" onClick="showHide('show<?php the_ID(); ?>')"></a></li>
- <?php endforeach; ?>
- <?php foreach($the_newest as $post) :
- setup_postdata($post); ?>
- <div class="work_expand" id="show<?php the_ID(); ?>" style="display:none;">
- </div>
- <?php endforeach; ?>
- <?php foreach($the_newer as $post) :
- setup_postdata($post); ?>
- <li <?php post_class($style) ?>><a href="#" onClick="showHide('show<?php the_ID(); ?>')"></a></li>
- <?php endforeach; ?>
- <?php foreach($the_newer as $post) :
- setup_postdata($post); ?>
- <div class="work_expand" id="show<?php the_ID(); ?>" style="display:none;">
- </div>
- <?php endforeach; ?>
- </div>
- <?php else : ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement