Also, I’m not sure what format the value needs to be in. A date field does not store a Unix time stamp, so this might be incorrect. get_the_time ('U', $post->ID) + 3628800 You need to figure out the format of the value that ACF is passing your filter and then return the correctly formatted value.
I would do this by temporarily adding
at the beginning of the function to figure out what I need to do.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users