How to display ACF Groups/Blocks in custom pages
We exported the data from an old WP site to a new one, we don’t have access to the original theme files, so I have to adapt the imported data to display in our current them.
We I go to edit say the Services page I can see the ACF fields are properly assign to the respective pages, About, Contact, Services and so on. See image below, it has a Blocks section holding the data I need to render.
Unfortunately for me I don’t know how to get the required fields to appear in the available block list.
I’ve imported a huge list(4k+ lines) to my functions.php child theme, that contains all the references to these fields:
if( function_exists('acf_add_local_field_group') ):
acf_add_local_field_group(array(
'key' => 'group_xxxxxxxxxxxxx',
'title' => 'All Blocks',
'fields' => array(...)
...
));
Sure I’m missing something, but I have no idea, any help will be much appreciated.
Leave an answer