Home › Forums › Front-end Issues › Group fields not showing on front end › Reply To: Group fields not showing on front end
Hi!
I have tested this on my project. Everything works. I will write as I did so that you can compare.
1. Created a field Group of fields for the required post type (in my case for posts)
2. Edited the post, filled in the data in the subfields
3. In the template for the post added the code
<? php $video = get_field('video_section');
var_dump($video); ?>
4. Go to the post page 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.