Home › Forums › ACF PRO › Using location slugs in ACF php export code › Reply To: Using location slugs in ACF php export code
The way I would do this is, when adding the posts and/or pages to the new site I would record the page ID values that are added in an option value for the site. I would register the field groups in PHP and I’d get the option value and use this to set the post id in the acf field group’s location rules.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.