Home › Forums › Add-ons › Repeater Field › Repeater sub_fields: not view attachments and postObject sub_field in front-end › Reply To: Repeater sub_fields: not view attachments and postObject sub_field in front-end
The reason that some fields are not showing up on the new site is most likely because the field keys for those fields are different on the new site but the key stored in the database is still the key from the old site. When this happens ACF does not know what to do with the data in those fields.
The simplest but probably the most time consuming way to fix this would be to open and save every page on your site. This would cause ACF to save the correct field key.
You could attempt to export the ACF posts using the standard WP export and import them to your new site, but if you’ve changed the groups then you’ll have a problem with any new data that you’ve entered.
You can go into MySQL and to a search & replace to replace all the new field key values with the old field key values in the postmeta table.
Make sure you back up your database if you try either of the last 2.
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U
— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.