Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2015 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4751719edb4a2da9292c to your computer and use it in GitHub Desktop.
Save anonymous/4751719edb4a2da9292c to your computer and use it in GitHub Desktop.
<?php if( is_home() and !is_paged() ) : ?>
<?php $my_query = new WP_Query( 'posts_per_page=1' );
while ( $my_query->have_posts() ) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<?php // Inhalt Loop 1 ?>
<?php endwhile; endif; ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
if ( $post->ID == $do_not_duplicate ) continue; ?>
<?php // Inhalt Loop 2 ?>
<?php endwhile; endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment