Home › Forums › ACF PRO › Renaming template and keep ACF data? › Reply To: Renaming template and keep ACF data?
Sorry I did not make it clear.
For example I have field group FG-A, setup for Page Template page-a.php
I need to change page template name to page-awesome.php
After changing that, in Custom Fields tab, field group FG-A does not apply for this template anymore, so I gotta do that manually again, and even go to check pages (with template page-awsome.php) to see if this still works.
Is there any kinda SQL query to fix this all at once, instead of manually doing this for every single field group (which this website has a lot)
For pages, this is what we did:
UPDATE wp_postmeta SET meta_value = ‘page-awesome.php’ WHERE meta_value = ‘page-a.php’;
But this did not solve ACF thing above 🙂
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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.