למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
Using WP-Rentals + WPML, Search of listings is not working in any translated language different to E…
נפתח על ידי: ociohogar-home-designS ב: Chat Support |
|
0 | 2 | לפני יום 4, שעה 3 | |
|
Need to set a specific taxonomy (cities) as not translatable by default but WMPL -> Settings doesn'…
נפתח על ידי: ociohogar-home-designS ב: Chat Support |
|
0 | 2 | לפני יום 5, שעה 1 | |
|
Solution proposed for https://wpml.org/forums/topic/issues-translating-a-site-with-wp-rentals-2/ is …
נפתח על ידי: ociohogar-home-designS ב: Chat Support |
|
1 | 2 | לפני שבוע 1 | |
|
Issues translating a site with WP Rentals
1
2
נפתח על ידי: ociohogar-home-designS
ב: English Support
Problem: wp-content/themes/wprentals/libs/reviews/reviews-functions.php , we suggested replacing the existing code with a new snippet that queries all translations of a property instead of just the original ID. This change involves checking if the WPML plugin class exists and then adjusting the query to include all language versions of the property. Here is the code modification suggested: // WPML Workaround for compsupp-8268<br />if (class_exists('Sitepress')) {<br /> $trid = apply_filters('wpml_element_trid', null, $postID, 'estate_property');<br /> $translations = apply_filters('wpml_get_element_translations', null, $trid, 'estate_property');<br /> $postID = array();<br /> foreach ($translations as $lang => $tr) {<br /> $postID[] = (int) $tr->element_id;<br /> }<br />}<br />$args = array(<br /> 'post_type' => 'estate_review',<br /> 'post_parent' => 0,<br /> 'post_status' => 'publish',<br /> 'posts_per_page' => intval($reviews_per_page),<br /> 'meta_query' => array(<br /> array(<br /> 'key' => 'attached_to',<br /> 'value' => $postID,<br /> 'compare' => 'IN'<br /> )<br /> ),<br /> 'paged' => intval($cpaged),<br /> 'suppress_filters' => true,<br />);We also advised that this change should be discussed with the theme developers to ensure it is not overwritten in future updates, or alternatively, to implement a filter in the functions.php of a child theme. If this solution does not resolve your issue or seems outdated, we recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket. |
|
0 | 22 | לפני שבוע 3 | |
|
Issues translating a site with WP Rentals
נפתח על ידי: ociohogar-home-designS ב: Chat Support |
|
1 | 2 | לפני חודש 1, שבוע 1 |