Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where a custom post type (CPT) added using Advanced Custom Fields (ACF) is restricted to a single language and is not visible in all languages, even after setting the post type to "Translatable" in WPML settings.

Solution:
1. Ensure that the WPML plugin and its add-ons are updated to the latest version for optimal functionality and bug fixes. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/.

2. If the issue persists after updating, try the following steps:
- Go to WPML → Settings page.
- Click on the "Custom XML Configuration" tab.
- Add the following configuration and save:

<wpml-config><br />  <custom-types><br />    <custom-type translate="0" >newwpmltest</custom-type><br />  </custom-types><br /></wpml-config>

- Create a new CPT using ACF named "newwpmltest" and check the results.

For more information on custom XML configuration, visit: https://wpml.org/documentation/support/language-configuration-files/#custom-types.

3. If the problem still occurs, consider creating a CPT using another plugin, such as the Toolset Types plugin, which can be downloaded from: https://wpml.org/account/downloads/.

If this solution does not seem relevant to your situation, please open a new support ticket with us for further assistance: Contact WPML Support.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 18 replies, has 2 voices.

Last updated by Nikhil Vishwanath 1 year, 2 months ago.

Assisted by: Andrey.

Author Posts
November 7, 2023 at 5:08 pm #14750409

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for the explanation. I have not experienced the same issue on my local installation. It is possible to specify in the WPML configuration that CPT is not translatable, but I still anticipate the same outcome. But let's try the following steps:

– Go to the WPML → Settings page

– Click on the tab "Custom XML Configuration"

– Add the following config and save

<wpml-config>
  <custom-types>
    <custom-type translate="0" >newwpmltest</custom-type>
  </custom-types>
</wpml-config>

– Using ACF create a new CPT "newwpmltest"

– Check the results

https://wpml.org/documentation/support/language-configuration-files/#custom-types

If there is still an issue, I suggest creating a CPT using another plugin. For, i.e., you can create it with the Toolset Types plugin. It should be available under the download section at wpml. org (https://wpml.org/account/downloads/).

November 9, 2023 at 6:09 am #14762233

Nikhil Vishwanath

Hi Andrey,

Thank you for the suggestions.

I have tried the steps mentioned but it still does not work.
After creating the new cpt in ACF, I am still not able to see it in other languages and it only gets saved in the English language (default)

We may have to try another way to add a CPT in this case as you have mentioned.

Added the screenshots for reference -

Thank you.

new cpt missing.png
new cpt test acf.png
November 9, 2023 at 3:01 pm #14768675

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your feedback.

Yes, please try the other way I have mentioned.

I would also suggest temporarily deactivating all the non-WPML and ACF-related plugins to check the results.

It's important that you create a backup of your database before making any changes, just to be safe.

November 10, 2023 at 6:16 am #14772413

Nikhil Vishwanath

Yes, we will try that as well.

Thank you for your support on this topic.