0
votes

I am using ACF pro and I am questioning something as I move through some of these unique pages on my website. Example - 3 portfolio pages, each with the same markup/layout. If I want to use ACF on these pages do I really have to create 3 unique wordpress php templates, and 3 sets of field groups with unique field names?

So (a simplified example, my pages have about 20 fields each):

template_one.php // "hero_image_1" // "hero_title_1"

template_two.php // "hero_image_2" // "hero_title_2"

template_three.php // "hero_image_3" // "hero_title_3"

and then 3 separate field groups with these unique field names?

I just feel like there should be more efficiencies that I am just not seeing here. Thank you in advance!

1

1 Answers

2
votes

No. You don't need 3 different ACF groups.

You need one group applied to the three different templates.

Beneath the area where you add fields is a "Location" box where you set when to show these fields.

Adjust those settings so that your field group displays on all the relevant templates.

Selecting different page templates