All,
This code is doing nearly all that I need it to.
{reverse_related_entries status="open"}
{if count == 1} {!-- This ensures a heading and ul are opened once only --}
<h5>Showtimes</h5>
<p> <ol id="showtimes"><br />
{/if}<br />
<br />
{if '{entry_date format="%U"}' >= '{current_time format="%U"}'} {!-- This gets future entries only --}<br />
<li>{date_heading display="daily"}{entry_date format="%l, %m-%j"}{/date_heading}</li><br />
<li>{entry_date format="%g:%i"}</li><br />
{/if}<br />
<br />
{if count == total_results} {!-- This closes the ul when all entries are displayed --}<br />
</ol><br />
{/if}<br />
<br />
{/reverse_related_entries}It outputs a list of movie showtimes like so
Showtimes
<ol id="showtimes">
<li>Thursday, 04-2</li>
<li>4:30</li>
<li></li>
<li>7:00</li>
<li></li>
<li>9:30</li>
<li>Friday, 04-3</li>
<li>7:00</li>
<li>4:30</li>
<li></li>
<li>7:00</li>
<li></li>
<li>9:00</li>
</ol>
I need it to nest a ol within each li (date_heading) like so,
Showtimes
<ol id="showtimes">
<li>Thursday, 04-2
<ul>
<li>4:30</li>
<li>7:00</li>
<li>9:30</li>
</ul>
</li>
<li>Friday, 04-3
<ul>
<li>7:00</li>
<li>4:30</li>
<li>7:00</li>
<li>9:00</li>
</ul>
</li>
</ol>
Does anyone know how this could be achieved?
Thanks in advance,
Adam