Created
July 27, 2015 11:07
-
-
Save anonymous/4751719edb4a2da9292c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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