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.
Hi @rboord
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!
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.