Home › Forums › General Issues › Using ACF inside group in meta description not working › Reply To: Using ACF inside group in meta description not working
If you are in the header then you are outside of “The Loop”. When you are outside of the loop you must provide ACF with the post ID of the post you want to get the value from because ACF cannot determine the correct post outside of the loop.
If what you are looking for is on a single post object then you would use something like
$queried_object = get_queried_object();
$group = get_field('caracteristicas', $queried_object);
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.