Home › Forums › Front-end Issues › Something broke – Clear all inputs ? › Reply To: Something broke – Clear all inputs ?
Your function expects the $post_id parameter to be set as ‘new’. You can see this here:
function add_new_post( $post_id )
{
if( $post_id == 'new' ) {
In short, you do NOT need to change the $post_id parameter.
The easiest solution is to edit your wp_options table and remove all entries that start with new_.
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.