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!
© 2022 Advanced Custom Fields.