Home › Forums › Gutenberg › Can't output values on frontend › Reply To: Can't output values on frontend
Problem solved!
So after playing around, I realised I was including the block in my template directly, rather than just using ‘the_content();’.
So my template just looks like this now (which makes so much sense!):
<?php
/** Template name: Home */
?>
<?php
get_template_part('blocks/header');
the_content();
get_template_part('blocks/footer');
?>
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.