WordPress Advanced Custom Fields plugin allows you to add customized information to posts and pages and is widely considered an essential plugin for many developers. They help give even more flexibility to this already innovative CMS and play a big part in turning WordPress from a blogging platform to a full content management system.
For those looking to translate their WordPress website, you’ll also want to ensure that you can also translate data from the custom fields you’ve added to your WordPress website.
This can easily be achieved using Weglot and in fact, the process of translating these custom fields is as simple as installing the Weglot plugin. Weglot starts by using machine translation to automatically translate your site. Then, you can go back and manually refine those translations or outsource them to professional translation services, through the Weglot interface.
Let’s take a quick look at how to translate your custom fields and see how using Weglot as your translation method means there’s zero additional string-by-string manual work required!
What’s needed to translate custom fields?
Translating custom fields is simple. Here’s how it works to translate ACF fields with Weglot.
1. Set Up Advanced Custom Fields (ACF)
You’ve probably already configured ACF. But if not, you’ll need to set up your custom fields before you translate them with WordPress.
To get started, install the free Advanced Custom Fields plugin from WordPress.org. You can also purchase the ACF Pro add-on plugin which will give you even more functionality.
Then, go to ‘Custom Fields’ → ‘Add New’ to create your custom fields in the ACF options page. We’ll create two different field types to show you how Weglot will work with any type of custom field from ACF:
Then, you can add your custom field information in the WordPress editor using the new meta box from ACF:
You can then display ACF field data on the front-end of your site using shortcodes or PHP functions. Here’s an example of what it might look like:
2. Install Weglot and translate your WordPress site
Translating your WordPress website with Weglot is quick and most of all easy, you’ll be able to create a multilingual site in just a few minutes.
To begin, register for a Weglot account and install the Weglot plugin from WordPress.org.
- Go to your new Weglot tab in your WordPress dashboard
- Add your Weglot API key (find this in your Weglot Dashboard)
- Select the original language of your website and the language(s) you want to translate your site’s content into
Click on ‘Save changes’ and Weglot will automatically translate your site using a first layer of machine translation, including any content from ACF. Navigate to your website and you’ll see a language switcher has automatically been added to your website.
So within a few minutes, you’ve already translated all your ACF content. There’s nothing manual to do – Weglot has already automatically detected all the content on your WordPress website, even your custom fields!
3. Manually edit ACF content translations (Optional)
If you’d rather review and manually edit any of the machine translations of your ACF content (including any content on your website) you can do so through the Weglot Dashboard.
You have the option to manage your translations from two interfaces depending on your preferences. Note, both interfaces speak to each other and sync with your live WordPress website, the only difference is down to you and which view you find the easiest to use.
The first option is to use the translations list. This shows your translations side-by-side, by URL and you can use the filter to select by translation quality, text or media. Simply click into the translation, make your change – you can even send the translations to a professional translator if you prefer.
Secondly, you can use the visual editor, which lets you manage your translations on a live preview of your site.
To use it, you hover over the ACF content that you want to translate and click the blue pencil icon:
This will open a popup where you can edit the translation:
And that’s how to use Weglot to translate your ACF content!
Translate your custom fields with Weglot
As we’ve just demonstrated, translating ACF custom fields with Weglot is simple. There’s no need for any special compatibility, a specific integration or any manual work from your side. The process is fully automated. All that’s required from you is whether you want to manually edit any of the content.
Sign up to Weglot’s free 10-day trial and get started today – you’ll be up and running within a few minutes!