Home › Forums › Front-end Issues › get_field() with an id of new_data › Reply To: get_field() with an id of new_data
What results is it returning? var_dump(get_field('data', 'new_data'));
Since ‘new_data’ is being set as the post ID then from what I can figure out that is causing ACF to consider it a values that’s stored in the options table and getting the value for ‘new_data_data’.
The question is, why are you using ‘new_data’ as the post id in get_field()?
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.