Home › Forums › Front-end Issues › New Posts don't accept data, updated posts do. › Reply To: New Posts don't accept data, updated posts do.
i can’t see where the function update_listing is being called from.
Your code is extremely complex and I urge you to debug the code line by line. All programming issues can usually be traced back to 1 line from where it all snowballs.
Just go through your code with a simple debug script like so:
<?php echo '<pre>'; print_r( $vairable ); echo '</pre>'; die; ?>
And make sure that each line or variable is holding the correct data. The die command will stop the page from continuing so that you can test that the code actually gets to that point.
Hope that helps.
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.