I am trying to set up a scheduled closings section in a template. My hurdle is some closings are a single date and some are a date range that is two or more days.
<ul>
{exp:channel:entries channel="closings" show_expired="yes" status="Scheduled"
show_future_entries="yes" year="{current_time format="%Y"}" orderby="date"}
<li>{title} {entry_date format="%F the %j<sup>%S</sup>"}</li>
{/exp:channel:entries}
</ul><ul>
{exp:channel:entries channel="closings" show_expired="yes" status="Scheduled"
show_future_entries="yes" year="{current_time format="%Y"}" orderby="date"}
<li>{title} {entry_date format="%F the %j<sup>%S</sup>"} through {expiration_date format="%F the %j<sup>%S</sup>"}</li>
{/exp:channel:entries}
</ul>I guess some sort of if statement could take care of this but not sure how to go about that, possibly some php. I am mainly a HTML/CSS guy so my php knowledge is lacking.
EE2 v2.1.3
http://new.zackhallmd.com/index.php/contact
Thanks
EDIT: This was my first post, looks like I should have posted it in “Community Help” not sure if it can be moved or I should delete and repost to “Community Help”?
Moved to Community Help forum by Moderator