This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Translated link targets not working at all
1
2
Started by: martinM-117
in: English Support
Problem: Solution: If this solution does not resolve your issue or seems outdated, 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 problem persists, please open a new support ticket at WPML support forum. |
2 | 23 | 1 month, 2 weeks ago | ||
Formats for “blank rows as spaces” between content doesnt copy to translated version
1
2
Started by: martinM-117
in: English Support
Problem: wp-content/themes/betheme/functions/theme-functions.php file. mfn_wpml_encode_custom_field and mfn_wpml_decode_custom_field functions with the updated code provided below: function mfn_wpml_encode_custom_field( $custom_field_val, $custom_field_name ) { if ( $custom_field_name === 'mfn-page-items' ) { $custom_field_val = mb_convert_encoding($custom_field_val, 'UTF-8', 'auto'); $custom_field_val = base64_encode( serialize($custom_field_val) ); } return $custom_field_val; } add_filter( 'wpml_encode_custom_field', 'mfn_wpml_encode_custom_field', 10, 2 ); function mfn_wpml_decode_custom_field( $custom_field_val, $custom_field_name ) { if ( $custom_field_name === 'mfn-page-items' && is_string($custom_field_val) ) { $custom_field_val = mb_convert_encoding($custom_field_val, 'UTF-8', 'auto'); $custom_field_val = maybe_unserialize( base64_decode($custom_field_val) ); } return $custom_field_val; } add_filter( 'wpml_decode_custom_field', 'mfn_wpml_decode_custom_field', 10, 2 ); 3. Edit the page in the default language. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your 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 needed, please open a new support ticket at WPML support forum for further assistance. |
2 | 24 | 2 months, 1 week ago | ||
lost translations after updating gramar mistakes in original language
Started by: martinM-117 in: English Support |
3 | 9 | 3 months, 1 week ago | ||
after transating captions of my images in post it shows {%CAPTION%} instead of translated text
1
2
Started by: martinM-117
in: English Support
Problem: Solution: // WPML Workaround for compsupp-7497<br />function wpml_compsupp7497_replace_caption_placeholder_shortcode( $output, $attr, $content ) {<br /> $caption_placeholder = '{%CAPTION%}';<br /> if ( strpos( $attr['caption'], $caption_placeholder ) !== false ) {<br /> if ( preg_match( '/attachment_(\d+)/', $attr['id'], $matches ) ) {<br /> $attachment_id = $matches[1];<br /> $translated_attachment_id = apply_filters( 'wpml_object_id', $attachment_id, 'attachment', true );<br /> $actual_caption = get_post_field( 'post_excerpt', $translated_attachment_id );<br /> $attr['caption'] = str_replace( $caption_placeholder, $actual_caption, $attr['caption'] );<br /> }<br /> }<br /> remove_filter( 'img_caption_shortcode', 'wpml_compsupp7497_replace_caption_placeholder_shortcode', 10 );<br /> $output = img_caption_shortcode( $attr, $content );<br /> add_filter( 'img_caption_shortcode', 'wpml_compsupp7497_replace_caption_placeholder_shortcode', 10, 3 );<br /> return $output;<br />}<br />add_filter( 'img_caption_shortcode', 'wpml_compsupp7497_replace_caption_placeholder_shortcode', 10, 3 ); If this solution does not resolve the issue or seems irrelevant due to updates or different configurations, we 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 problems persist, please open a new support ticket. |
2 | 20 | 3 months, 1 week ago |