This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues with translating 'options' using the WPBakery widget STM Classic Filter in the Motors theme, particularly with PHP 8 or higher, we have identified a solution.
Solution:
1. Navigate to
wp-content/themes/motors/listings/loop/classified/list/options.php
.
2. Around line 36, modify the existing code from:
foreach ( $middle_infos as $middle_info_key => $middle_info ) : // WPML Workaround for compsupp-7432 if ( is_array( $middle_info ) && isset( $middle_info['single_name'] ) ) { if ( class_exists('Sitepress') ) { $textdomain = 'motors'; $data_single_name = 'Motors - WPML String: ' . $middle_info['single_name']; if ( apply_filters('wpml_default_language', NULL ) == apply_filters( 'wpml_current_language', NULL )) { do_action( 'wpml_register_single_string', $textdomain, $data_single_name, $middle_info['single_name'] ); } // Apply the translation to the string $middle_info['single_name'] = apply_filters('wpml_translate_single_string', $middle_info['single_name'] , $textdomain, $data_single_name); } }
3. Visit the page with the issue in the original language to register the string.
4. Go to WPML > String Translation page and translate the new string under the 'motors' textdomain.
IMPORTANT: Please backup your database and website before proceeding.
If this solution resolves your issue, we recommend reporting it to the theme's author so they can potentially include this fix in the theme's source code.
Please note that this solution might be irrelevant if it's outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
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.
This topic is split from https://wpml.org/forums/topic/motors-theme-listing-category-labels-not-translated/