Fill ACF Choices fields from an ACF Options Page using comma-separated text or repeater field

Fill ACF Choices fields from an ACF Options Page using comma-separated text or repeater field

Bruce Young

1 год назад

4,223 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Giovanni Coppola
Giovanni Coppola - 09.08.2023 10:05

Great tutorial!
One question, if I have to add another options repeater with title and option name, do I have to create the dedicated code each time? How can I do to have everything with one code and then not use the if condition based on the repeater_title? If I have 10 items to insert each time I have to match on the code. Thank you so much.

Ответить
Toby
Toby - 13.07.2023 13:21

If you update the values in the options page I'm guessing the value update doesn't cascade through to the ACF select field in the post where that value was chosen? I was looking at this as a possible solution to pulling prices through into a Loop based on CPT 'Packages' but with prices stored in an options page as there are only 4 price variants but each of the 4 prices could be associated with multiple packages so easier to just update the 4 prices in an options page.

Ответить
Nico The Freelancer
Nico The Freelancer - 13.04.2023 08:35

my global options page is gone after updating to latest version of acf. any clue?

Ответить
James Ross Design
James Ross Design - 15.11.2022 23:25

Thanks Bruce, very helpful for my scenario

Ответить
Kevin Gaynor
Kevin Gaynor - 19.10.2022 00:29

Hi Bruce, are you able to provide a real world example of where this might be useful? I'm not the most experienced when it comes to options pages, so trying to understand how this might be applicable to some websites.

Ответить