Home › Forums › ACF PRO › Values cannot be saved no matter what I do › Reply To: Values cannot be saved no matter what I do
The first thing I would do is to see if the data is actually getting to the server. Why, because I haven’t a clue where to start so I would start at the beginning.
I would open up the file /wp-admin/post.php
and at the top of the file I would add
// this if will make sure this is only run for you
// change the user ID value to yours
if (get_current_user_id() == 1) {
// see what's in $_POST if it's not empty
if (!empty($_POST['acf'])) {
echo '<pre>'; print_r($_POST['acf']); die;
}
}
The above should print out what is being sent to ACF and halt execution. Then I would compare what is there with what should be there to see if the fields in questions are submitted.
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.