Ads between posts in Wordpress with Genesis Framework
<p>I am trying to set up a blog that inserts an ad between each post. Here's a wire frame to help explain what I am trying to do. (<a href="http://i.stack.imgur.com/TTCFO.jpg" rel="nofollow">wireframe</a>) Ads are outlined in red. I am using Genesis framework. </p>

<p>I tried using custom post types to create an "Ad" post type but the problem is I can't prevent the ads from duplicating on the same page. I use the </p>

<p>Here's my loop that I am using. I run the genesis_after_entry hook to add the loop. </p>

<pre><code>&lt;?php $args = array( 'post_type' =&gt; 'ads', 'posts_per_page' =&gt; 1, 'orderby' =&gt; 'rand' );
$do_not_duplicate = array();
$loop = new WP_Query( $args );
while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();
$do_not_duplicate[] = $post-&gt;ID;
  the_content();
endwhile; ?&gt;
</code></pre>

<p>Something's obviously wrong because it's still duplicating. Any help would be greatly appreciated!</p>