- Status
- Resolved
- Resolved in
- 4.5.0
- Related plugin/theme
- Elementor
Overview of the issue
The Elementor Pro Gallery widget does not show translated image titles, captions, or descriptions on the site’s front-end.
Workaround
This issue will be fixed in WPML 4.5 release. In the meantime, you can follow this workaround to get the issue fixed on your site.
- Please backup your website database and files.
- Go to wp-content/plugins/elementor-pro/modules/gallery/widgets/gallery.php
- Replace
$attachment = get_post( $id );
with
$attachment = get_post( apply_filters( 'wpml_object_id', $id, 'attachment', true ) );
as shown in this screenshot:
