• Resolved MI

    (@mariukas)


    Hey,

    I have two loops on index:

    FIRST:

    <?php if ( have_posts() ) : ?>
    <?php query_posts ('post_type=TYPE1' . '&showposts=10'); ?>
    <?php while ( have_posts() ) : the_post(); ?>
    [content]
    <?php endwhile; ?>
    <?php else : ?>
    <?php endif; ?>

    SECOND:

    <?php if ( have_posts() ) : ?>
    <?php query_posts ('post_type=TYPE2' . '&showposts=10'); ?>
    <?php while ( have_posts() ) : the_post(); ?>
    [content]
    <?php endwhile; ?>
    <?php else : ?>
    <?php endif; ?>

    I want to add third one to sidebar showing just one newest post from all post types, but i need to check if current newest post is visible on first or second loops and display older one if there is duplicate content.

    Any help?

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Check if another loop showing post’ is closed to new replies.