Support

Account

Home Forums Feedback Importing & exporting ACF settings

Solving

Importing & exporting ACF settings

    • bart

    • September 26, 2015 at 5:06 am

    I have setup ACF on a local WordPress installation and now want to replicate these settings to a live WordPress installation. What I plan to do:

    On local environment:

    1. Export row from wp_posts where post_type=’acf’
    2. Export rows from wp_postmeta where post_id={ID_OF_POST_FROM_STEP_1}

    On live environment:

    3. Install ACF
    4. Import row from step #1
    5. Import rows from step #2

    Is this a good way to export/import the settings?

    I’ve looked into the traditional import/export technique, but this seems to import/export ALL WordPress’s settings, which I don’t want. I only want to import/export ACF settings.

  • I’m assuming that you’re using ACF 4 (free version) from looking at the post_type.

    Are you trying to export and import the field groups that you’re created or something else?

    • bart

    • September 29, 2015 at 6:24 am

    Correct, I’m trying to export/import the field groups. If upgrading to ACF 5 is a solution, I’m happy to pay for it.

  • ACF5 will let you export JSON files of field groups that can be imported into other sites that are also using ACF5. It’s a pretty handy feature for copying field groups from development to live sites.

    • bart

    • September 29, 2015 at 6:47 am

    I’ve examined that path, but the import/export functionality exports ALL WordPress settings, not just the ACF settings.

  • I’m not sure what you mean by exporting or importing settings. ACF field groups aren’t WP settings, they are a custom post type. How are you trying to export them that you’re getting settings?

    The export import feature of ACF5 only exports ACF field groups and does not export any other WP settings.

    • bart

    • September 29, 2015 at 7:24 am

    I’m confused. Nowhere on advancedcustomfields.com the JSON import/export functionality of ACF5 is described in detail, so I don’t know how this works. I want to do this without coding.

    With ‘settings’ I mean the extra fields that have been created, not the contents of these fields. Please re-read my original question, it explains which rows I’m talking about.

  • Fist ACF5 export. IN ACF4 there is an export to code that exports the php needed to register a field using code. ACF5 improves this by allow you to export to JSON format and import that file into another site.

    As far as exporting manually, yes, if you export the posts of post_type ‘acf’ and all the meta values associated with those posts it should export the field groups and import them. This should also be possible using the standard WP export and import by only exporting “acf” posts. The only extra setting you might get would be your username and you can assign the imported posts to a different user.

    • bart

    • September 29, 2015 at 8:17 am

    Thanks for the help! Everything is clear now.

  • Glad I could help and sorry if I cause any confusion.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

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.