ACF Custom Theme Dev – Flexible Content issue

[ad_1]

I used to build custom WordPress themes using ACF Pro to where I could create a folder with all of the ACF flexible content fields inside and it would load on the front end fine.

I haven’t used WordPress in a while and now getting back into custom theme dev. Where do I put the flexible content loop and tell it to look inside the folder “flexible content” to get the template parts?

Example:

Currently, inside of the flexible content folder in hero.php I have built a container-fluid with a background image, a container inside of that, and then a h1 and a p tag with ACF fields pulling the text through.

the hero.php shows the frontend but the text and the background image URL don’t pull through. I have tried get\_field, the\_field, the\_sub\_field, get\_sub\_field and it still won’t pull through.

Do I need to register the ACF flexible content loop somewhere? If so, where?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer