This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
the issue I'm having is translating Yoast SEO Meta Data on User Pages
Started by: marcJ-16
in: English Support
Problem: functions.php file. // WPML Workaround for compsupp-7364<br />add_filter('wpseo_title','wpml_compsupp7364_translate_author_title', 10, 2 );<br />add_filter('wpseo_opengraph_title','wpml_compsupp7364_translate_author_title', 10, 2 );<br />add_filter('wpseo_metadesc','wpml_compsupp7364_translate_author_description', 10, 2 );<br />add_filter('wpseo_opengraph_desc','wpml_compsupp7364_translate_author_description', 10, 2 );<br /><br />function wpml_compsupp7364_translate_author_title($title, $presentation) {<br /> if ( class_exists('Sitepress') && is_author() ) {<br /><br /> $string = $title;<br /> $textdomain = 'Authors';<br /> $string_name = 'wpseo_title_'.$presentation->source['post_author'];<br /><br /> // Apply the translation to the string<br /> $title = apply_filters('wpml_translate_single_string', $string , $textdomain, $string_name);<br /> }<br /><br /> return $title;<br />}<br /><br />function wpml_compsupp7364_translate_author_description($title, $presentation) {<br /> if ( class_exists('Sitepress') && is_author() ) {<br /><br /> $string = $title;<br /> $textdomain = 'Authors';<br /> $string_name = 'wpseo_metadesc_'.$presentation->source['post_author'];<br /><br /> // Apply the translation to the string<br /> $title = apply_filters('wpml_translate_single_string', $string , $textdomain, $string_name);<br /> }<br /><br /> return $title;<br />} 3. Save the changes and ensure the code is correctly added without syntax errors. Please note that this solution might be 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 at WPML support forum. |
|
2 | 10 | 1 year, 1 month ago | |
Can't unsync some ACF fields
Started by: marcJ-16 in: English Support |
|
2 | 3 | 1 year, 9 months ago |