No results found. Try again with different words?

Search must be at least 3 characters.

Translating the Advanced Custom Fields with WPML

Sidebar Image

Did not find a solution? We are here to help you succeed.

If youโ€™re running a multilingual WordPress site or looking to get started with one, youโ€™ll also want to translate data from your custom fields. You can easily achieve this with ACFML (ACF Multilingual), a glue plugin that works together with WPML to translate ACF fields. ACF Multilingual lets you translate everything from custom field values to labels, titles, and labels for Choices. Whatโ€™s more, you can choose from different translation workflows, depending on how simple or complex your custom field setup is.

To get started, install and activate the following:

  • WPML core plugin and the WPML String Translation add-on
  •  Advanced Custom Fields Multilingual (ACFML) glue plugin
  • WooCommerce Multilingual add-on (if youโ€™re running a WooCommerce site)

Iโ€™ll assume that youโ€™ve already gone through the WPML setup wizard. If not, you can check out WPMLโ€™s guide to getting started.

Next, go to ACF โ†’ Field Groups and edit the field group you just created. At the top of the screen, you can see the ACF Multilingual setup wizard, which lets you choose from three translation options for your custom field group. You can check out the differences between each translation option and pick whichever is right for your case. 

For demonstration purposes, Iโ€™ll select the Same fields across languages translation option.

step 1 translating advanced custom fields

Now, you can head over to the editing screen of the post type your custom fields are attached to. In the right sidebar, youโ€™ll see a Language box. Click the plus icon next to the language you want to translate your post type and the attached custom fields into.

 translating advanced custom fields-langugae box

This takes you to the Advanced Translation Editor, where you should see all your text field values, titles, and labels available for translation. You can choose between automatically or manually translating the post content and custom field data.

translating advanced custom fields-advanced transaltion editor

Itโ€™s worth noting that numeric values, like the Mobile Price, wonโ€™t appear in the Advanced Translation Editor. In the Same fields across languages option, these and all other numeric values are automatically copied over to your secondary language content.

Once youโ€™re done translating, simply hit the Complete button. If youโ€™ve already added the functions mentioned in the section about displaying the data, you donโ€™t have to do anything more. WPML automatically creates the post type in your second language and connects it to the one in your default language.

To know more about how to use Advanced Custom Field with Astra theme, check out the documentation here.

Was this article helpful?
Sidebar Image

Did not find a solution? We are here to help you succeed.

Related Docs

Join 1,653,898+ Happy Site Owners Using Astra

Whether you are a beginner, small business owner, or professional web developer, Astra provides all the tools you need to easily build your beautiful WordPress website.

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form