I’m trying to only show the event end date when there is an end date. most events are 1 day and the end date is not set.
my other hurdle is that I cannot use the elements condition tool, because this is all entered into a text field.
is there a contextual variable that can be used for an empty string condition key? something like fallback="" possibly? right now, when the end date doesn’t exist, it uses today’s day/date in place.
this is what I’m working on:
{{dc:acf:post_field field="event_end_date" type='date' format="j"}}
but this is the entire field:
<span id='month'>{{dc:acf:post_field field="event_date" type='date' format="M"}}.</span> <span id='day'>{{dc:acf:post_field field="event_date" type='date' format="j"}}</span><span id='endday'>{{dc:acf:post_field field="event_end_date" type='date' format="j" fallback=""}}</span> <span id='years'>{{dc:acf:post_field field="event_date" type='date' format="Y"}}</span>