Here’s what I’m trying to do:
I have a site that lists out a series of entries (businesses), every 8th entry or so I want to randomly display an entry from another channel (an ad).
{exp:channel:entries channel="businesses" orderby="title" sort="asc" limit="250" cache="yes" refresh="60"}
<li>
<div class="bus-desc">
<h4>{title}</h4>
<p> {businesses_summary}<br />
</div><br />
</li><br />
{exp:random_number min="1" max="8"}<br />
{if random_number_0 == 8}<br />
{embed="layout/ads"}<br />
{/if}<br />
{/exp:random_number}<br />
{/exp:channel:entries}The problem, is that instead of rerunning the channel entries query in {embed="layout/ads"} it just keeps posting the same result. I need a different result for every random 8th entry.
Any ideas?
Thanks!