Add a text field and set it to dynamic and Post Date
Once set, edit the Post Date Options
Set the format to Custom and the Custom Format to just: U
View any post on the frontend and see that nothing is in the text field
Edit the page again and set the custom format to something like: d-U (ie day of month - timestamp)
save and view the template and see that on the frontend that it properly inserts the timestamp after the day of the month. But when the custom format is just U by itself, nothing is put in the dynamic element.
I use custom js to convert all fields tagged with a custom class to local dates/times for the user, so I need the dynamic Post Date element to just return the timestamp. Would save me from replacing them all with custom shortcodes.
Steps to reproduce:
I use custom js to convert all fields tagged with a custom class to local dates/times for the user, so I need the dynamic Post Date element to just return the timestamp. Would save me from replacing them all with custom shortcodes.