- Status
- Resolved by author
- Reported for
- WPML Multilingual CMS 4.5.14
- Related plugin/theme
- The Events Calendar
- Topic tags
- Compatibility
Overview of the issue
The Events Calendar PRO plugin introduced a new feature – Series events – which is only partially compatible with WPML at the moment. We are working closely with the author in order to achieve full compatibility for the following issues soon:
- When using The Event Calendar PRO shortcode to display venues, cities, organizers, etc. they aren’t shown in the front-end.
- Google’s map isn’t displayed on the first page load, you need to refresh the page.
Workaround
Please, make a full backup of your site before proceeding.
Open the …./wp-content/plugins/the-events-calendar/src/Tribe/Integrations/WPML/Meta.php. file and make the following two modifications.
- Change:
use Tribe__Events__Main as Main;
To:
use Tribe__Events__Main as Main; use TEC\Events\Custom_Tables\V1\Models\Occurrence;
- And change:
if (!empty($_POST)) { return $value; }To:
if (!empty($_POST)) { return $value; } if (tribe()->getVar('ct1_fully_activated')) { $object_id = Occurrence::normalize_id($object_id); }