Support

Account

Home Forums ACF PRO Do Post IDs of field groups change when Upgrading to 5 Reply To: Do Post IDs of field groups change when Upgrading to 5

  • I did some testing and it looks like in the upgrade from 4 to 5 any Field Groups (post_type==acf) are kind of cloned into a new post with post_type==acf-field-group

    As I said in my original post I have a custom solution that involves storing the post IDs of field groups in a custom field. If I upgrade the project from 4 to 5 (which I’d really like to do) then the post IDs I have stored will still reflect the ACF4 ‘acf’ posts and not the ACF5 ‘acf-field-group’ posts.

    During upgrade is there any reference made that links the ACF4 post ID to its upgraded ACF5 post ID? If so then I could write a query that would go through and update all of the post IDs.

    OR

    Is it possible to hook into the upgrade and update my post IDs then?

    thanks!