Home › Forums › Front-end Issues › get_field() with an id of new_data › Reply To: get_field() with an id of new_data
Hi John, thanks for the reply.
It returns a field for a post which I can’t find.
Your question as to why I am doing it is very valid. I am setting a post ID (for a different post to the current one) as a variable and due to a bug in my code, it got set to ‘new_data’ instead of the proper ID. So I wouldn’t have known about it if I hadn’t written bad code
It is totally avoidable, it is just irritating me as to why it is happening.
James
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.