Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="width: 960px;">
- <div id="3posty" >
- <?php $my_query = new WP_Query('showposts=3');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;?>
- <div id="posty-w-sliderze" >
- <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
- the_post_thumbnail(); } ?>
- <?php the_title(); ?>
- <!-- Do stuff... -->
- <?php the_content ();?>
- <?php endwhile; ?>
- <!-- Do other stuff... -->
- </div>
- </div>
- <div class="clear"></div>
- <div id="pozostale">
- <?php if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue; ?>
- <div id="miniatury">
- <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
- the_post_thumbnail()}?>
- </div>
- <!-- Koniec Wyliczanki -->
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
- <!-- Czyszczenie! --><div class="clear"></div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement