WPML

WPML Integration

Once ACPT detects WPML, it tries to createwpml-config.xml inside the plugin root folder.

To check the configuration file was successfully generated, navigate to ACPT > WPML.

If something went wrong during the creation of the file, an alert will be displayed:

In this case, the user has to create the manually the file.

With your favorite text editor create a blank file called wpml-config.xml file and copy the content inside the advanced-custom-post-type folder:

WMPL configuration is now correctly loaded.

A typical WPML configuration file is like this:

<?xml version="1.0"?>
<wpml-config>
  <custom-fields>
    <custom-field action="copy" style="line" label="Meta Box Title - Meta Box Field">meta_box_title_meta_box_field</custom-field>
    <custom-field action="copy" style="line" label="meta - text">meta_text</custom-field>
  </custom-fields>
</wpml-config>

For more information about WPML configuration file, please refer to the official documentation.

Last updated