Home › Forums › Backend Issues (wp-admin) › Using fields outside the loop › Reply To: Using fields outside the loop
Thanks Elliot – I was just coming back to explain that I forgot to add the post_id to my example, but obviously it doesn’t affect the info from your first paragraph.
I have got a system working now, but maybe you could clarify something for me: Because of WP’s use of hooks (like in this case), if you want to work with variables between hooked functions, you basically have to assign them to global variables – is that correct, or is there a better way?
Cheers.
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.