one solution, might be getto but that is to have all fields on all templates that will be using custom fields and just have them display:none.
Then just do some checking with jquery on what page template were are on (#page_template) and also check if it changes and just add display:block on field blocks that should be displayed.
Is this really bad? What would the performance be on the dashboard and the db if having let say 90 fields in total.
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.