Tell us what you are trying to do?
I am sorry to open a new ticket. We migrated from ACF to CMB2 because of its advantages.
We have a custom color for each category, wihch is the same for every language (the color), but because each translated category has a different id, the color only shows on the default lang. (english), forcing us to repeat the color value for each translation. We would like to avoid that. Just set the CMB2 color once on english. Is this possible?
Is there any documentation that you are following?
Nope
Is there a similar example that we can see?
Nope
What is the link to your site?
It is a local development site.
I resolved it by getting always the default language category id, like this:
$cat_english_id = apply_filters( 'wpml_object_id', $cat_term_id, 'category', FALSE, 'en');
Loving WPML!
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.