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.
Tagged: Compatibility
This topic contains 6 replies, has 2 voices.
Last updated by Noman 1 year, 6 months ago.
Assisted by: Noman.
Author | Posts |
---|---|
July 16, 2023 at 10:40 am | |
muhammad-sohailR-2 |
I have tried out different way like wpml media translation and manually change the feature image but it comes back the same image |
July 16, 2023 at 1:34 pm | |
July 16, 2023 at 2:03 pm #14044795 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thanks for installing the Houzez theme on fresh WP site, can you please also install the Houzez Theme Functionality plugin so that I can try to reproduce this issue and escalate it to our compatibility team for further debug. Here is the autologin URL of fresh WP site: Thank you for your cooperation and patience |
July 16, 2023 at 5:48 pm #14045329 | |
muhammad-sohailR-2 |
I have added all theme addons plugins |
July 17, 2023 at 4:59 pm #14051915 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for installing the Houzez theme and its bundled plugins. I appreciate your cooperation in bringing this issue to our attention. I have tested the theme on a fresh WordPress site and can confirm that I am able to reproduce the problem as well. Rest assured, I will escalate this matter to our compatibility team for further investigation and resolution. Thank you once again for your patience and cooperation. |
July 18, 2023 at 8:36 pm #14062031 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
I have escalated this issue to our 2nd tier team for further review and will update you as soon as I have some news. Thank you |
July 20, 2023 at 10:44 pm #14075181 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Update: Our 2nd tier support has confirmed the issue and provided a temporary workaround to get this working. 1. Please add the below code in functions.php file of your child theme: // WPML Workaround for compsupp-6879 add_filter('post_thumbnail_id', function($thumbnail_id, $post){ $thumbnail_id = apply_filters( 'wpml_object_id', $thumbnail_id, 'attachment', TRUE ); return $thumbnail_id; }, 10, 2); 2. Then clear all sorts of cache in your site (CDN, plugin's cache, browser cache, server cache, etc...) I would also recommend to test this with a New Image (with a different filename) and check with a New Post. Please share the results with me afterwards. Thank you |
August 7, 2023 at 7:38 am #14161597 | |
Noman Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
After a thorough investigation, it has come to our attention that the ongoing issue is a result of the "_thumbnail_id" field being configured as a copy within the wp-config.xml. To address this matter, we kindly advise you to execute the following steps: 1. Please take a backup of your site first for safety reasons. 2. Open the wpml-config.xml file located in the wp-content\themes\houzez directory. 3. Remove the below line from the file: <custom-field action="copy">_thumbnail_id</custom-field> After performing this action, please test your website's functionality to determine if the issue has been resolved. If the issue still persists for older posts due to their containing outdated post meta values, it is recommended to retain the previous workaround for those specific cases. Please share the results with us afterward. Thank you |