getting double post
I’m using two loops to display my posts. The first displays the video posts and the second displays the normal posts. There needs to be two different loops because the markup is significantly different.
It looks something like this:
<?php if( has_post_video() ): ?> [markup video post] <?php endif; ?> <?php if( have_posts() ): ?> <?php while( have_posts() ): the_post(); ?> [markup normal post] <?php endwhile; ?> <?php endif; ?>
It’s probably something pretty simple and fundamental, but i’m not seeing it. Could someone help me with this? Thanks!
- The topic ‘getting double post’ is closed to new replies.