Home › Forums › Front-end Issues › questions about get_field › Reply To: questions about get_field
Hi @udinei
I have moved this question to a new topic, because it was not related to the previous thread.
In your question, you mentioned that you are using the above code in your functions.php file.
If so, you will need to specify a post_id as a second parameter to tell AF from with post to load the data from.
Please read over the docs regarding get_field to learn more about the post_id parameter.
Hope that helps.
Thanks
E
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.