Home › Forums › Front-end Issues › How do the date of publication by a front-end form? › Reply To: How do the date of publication by a front-end form?
The code is missing a semicolon.
// check if this is to be a new post
if( $post_id != 'new' ) {
return $post_id
}
It should be as follows:
// check if this is to be a new post
if( $post_id != 'new' ) {
return $post_id;
}
But I was not able to achieve success with your code. I use the Date Picker field with default settings. It is right?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.