Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Disable WPML translation for Team Custom Post Type
New Landing › How can we help? › Cardinal › Disable WPML translation for Team Custom Post Type
- This topic has 7 replies, 3 voices, and was last updated 9 years by
Rui Guerreiro – SUPPORT.
-
Posted in: Cardinal
-
September 10, 2015 at 11:02 pm #212163
I am using Essential Grid plugin and trying to display a grid of Team members (from the Cardinal Custom Post Type).
I have created 8 Team Members, and in english it works fine. But when the page tries to call the Essential Grid in Spanish, it cannot find the selection. Of course, it is trying to pull the Spanish versions of the Team Members.
I would like it to not translate the Team Custom Post type, so that regardless of language, it pulls the English versions.
I believe you set this in WPML > Translation Options where I can tell it to translate or do nothing.
However, most of the Cardinal Custom Post Types are AUTOMATICALLY set to “Translate” and not available to disable as this screenshot shows.
Can you help me determine how to have plugins or the system use Cardinal CPTs in English only?
Thanks very much.
Mike
September 11, 2015 at 8:08 am #212219Hi,
You can go in WPML > Translation Management > Multilanguage Content Setup and at the section Custom Post you can choose which types you want to translate or not.
Thanks
MohammadSeptember 11, 2015 at 8:59 am #212231WPML > Translation Management shows he same thing. The Cardinal Custom Post Types are dimmed out as the image shows:
Why are only some of the Cardinal CPTs dimmed out? Can you help me determine how to change them to “Do Not Translate”?
Thanks. Mike
September 11, 2015 at 9:28 am #212234Hi,
I guess that’s because you can choose to translate it or not inside the specific items like it works with the posts and pages.
https://www.dropbox.com/s/xkyyxryr1v3fm0k/Screenshot%202015-09-11%2009.26.52.png?dl=0
For instance it will only exist a translation in a Portfolio if you create a specific language Portfolio version, by default it will only be in the main language.
Hope it helps.
-Rui
September 11, 2015 at 9:58 am #212249I found that the translations for Cardinal were being forced in wpml-config.xml at the root of the theme:
<custom-types> <custom-type translate="1">portfolio</custom-type> <custom-type translate="1">clients</custom-type> <custom-type translate="1">galleries</custom-type> <custom-type translate="1">team</custom-type> <custom-type translate="1">testimonials</custom-type> <custom-type translate="1">directory</custom-type> </custom-types> <taxonomies> <taxonomy translate="1">portfolio-category</taxonomy> <taxonomy translate="1">clients-category</taxonomy> <taxonomy translate="1">gallery-category</taxonomy> <taxonomy translate="1">team-category</taxonomy> <taxonomy translate="1">testimonials-category</taxonomy> <taxonomy translate="1">directory-category</taxonomy> <taxonomy translate="1">directory-location</taxonomy> </taxonomies>
I’m not sure if that is what was intended, but it is in the Cardinal theme root, which WPML is reading and not allowing modification.
Once I remove the custom post type and category from the xml file, I can set it manually in the WPML config.
September 11, 2015 at 10:11 am #212253Yes, that’s intended because you can choose or not to translate those CPT in the item page itself like I told you. The same that you do for Pages and Posts.
Only the CPT that don’t have a front page like SPB Sections and Swift Slider need to be translate the other way.
-Rui
September 11, 2015 at 3:47 pm #212357Thanks Rui.
But I don’t understand. When I remove the line:
<custom-type translate="1">team</custom-type>
from wpml-config.xml, I can manually change the the CPT to “DO NOT TRANSLATE”
It looks to me like the attribute:
translate="1"
is forcing a TRUE to always translate.Are you saying that is not what it is doing?
Thanks, Mike
September 11, 2015 at 4:01 pm #212361Exactly.That’s to tell to WPML what CPT should be translated.
https://www.dropbox.com/s/iyaaps7zoamuf5o/Screenshot%202015-09-11%2015.58.45.png?dl=0Don’t see the necessity of changing the option to “Do not translate” since it’s up to you to translate or not using that option of my previous screenshot.
https://www.dropbox.com/s/xkyyxryr1v3fm0k/Screenshot%202015-09-11%2009.26.52.png?dl=0
-Rui
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.