I am listing an event. If the expiration_date day is the same as the event_date day, I want to suppress the expiration_date day. I tried this following code but it doesn’t work. Can you help?
{exp:channel:entries channel="event" show_future_entries="yes" show_expired="no" orderby="date" sort="asc"}
<li>
<h5>{categories show_group="1"}{category_name}{/categories}</h5>
<p> <div class="event_info"><br />
</p><h3><a href="http://{url_title_path=events/event}">{title}</a></h3>
<p> </p><h4>{entry_date format="%F %j, %Y"} | {entry_date format="%g:%i%a"} {if show_expiration}{if expiration_date} - {if expiration_date format="%F %j %Y"<> entry_date format="%F %j %Y"}{expiration_date format="%F %j, %Y"} | {/if}{/if} {expiration_date format="%g:%i%a"}{/if}{if event_cost}
{event_cost}{/if}</h4>
<p> </div><br />
{event_image}<br />
</li><br />
{/exp:channel:entries}Of the above code - this is the piece that is causing the page to break:
{if expiration_date format="%F %j %Y"<> entry_date format="%F %j %Y"}{expiration_date format="%F %j, %Y"} | {/if}What I’m trying to say is that if the expiration_date does not match the entry_date, then the expiration_date should appear.