Home › Forums › Front-end Issues › Group fields not showing on front end › Reply To: Group fields not showing on front end
Wrote an answer, but it disappeared. I’ll write again.
I have checked on my project. Everything works. I will write how I do, compare with how you do.
1. Create a group of fields (in my case for posts)
2. Create a post. I fill in the created fields.
3. open the page template for the post. I add the code
$video = get_field('video_section');
var_dump($video);
4. I open the post and see this
array(3) { ["video_link"]=> string(18) "https://my-link.com" ["video_header"]=> string(5) "Title" ["video_subheader"]=> string(8) "Subtitle" }
What are you doing differently?
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.