Hi,
I have an ACF Pro datepicker field in one of my post types. Where there is a known valid date, it will be either entered manually through the appropriate field in the post, or will be imported along with other data using WP All Import.
When there is no date to be entered, the field will remain as it is in the first screenshot below, whilst in the WP All Import import, there will be a null or blank value.
However, in either scenario, today’s date is shown on the front-end.
The affected field is rendered using dynamic content using this code: Date of Death: {{dc:acf:post_field field="date_of_death" fallback="Unknown" type="date" format="jS F Y"}}
.
What I really need to achieve is that when there is no date the fallback
clause of the above code is displayed. In the worst case, a bank value is displayed.
How can I do this, please?
Thanks,
Christopher