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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
- | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | - |
Supporter timezone: Europe/Zagreb (GMT+01:00)
This topic contains 7 replies, has 2 voices.
Last updated by Dražen 11 months, 1 week ago.
Assisted by: Dražen.
Author | Posts |
---|---|
January 11, 2024 at 11:00 am #15173456 | |
konradC-2 |
I have 3 language versions of my blog: English, Spanish and German; on different domains. The problem is that the English and German blog home pages are displaying Spanish og:url and the entire LD+JSON Schema (yoast-schema-graph). hidden link |
January 12, 2024 at 7:54 am #15177459 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for contacting us. 1) Can you please check if the issue happens when only WPML plugins and WooCommerce are activated, all other plugins disabled? Please change your theme to the WP default theme and check if the issue happens. 2) Does the same issue happen when using a different language per directory, not per domain? Let me know how it goes. Thanks, |
January 12, 2024 at 10:59 am #15178463 | |
konradC-2 |
Hi Drazen. Thank you for looking at my case. 🙂 1) There is no WooCommerce on my blog. Perhaps you meant Yoast SEO? 2) When I switch from languages per domain to language per directory, the issue also persisted - showing the spanish URLs with domains, not directories. I didn't find the domain names in String Translations, so I searched for the Spanish Title. And they are all properly translated for all 3 languages. |
January 12, 2024 at 11:49 am #15178785 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back. 1) It could be they are "stuck", please try next: - Create a full backup of your site. 2) Try the next workaround, from similar case we already have reported: Edit the file wp-content\plugins\wp-seo-multilingual\classes\Presentation\Hooks.php } elseif ( 'post-type-archive' === $objectType ) { $newLink = self::getPostTypeArchiveLink( $presentation->model->object_sub_type, $originalLink ); } with } elseif ( 'post-type-archive' === $objectType ) { $newLink = self::getPostTypeArchiveLink( $presentation->model->object_sub_type, $originalLink ); } else if ( 'user' === $objectType ) { $newLink = get_author_posts_url( $presentation->model->object_id ); } Let me know how it goes. Thanks, |
January 12, 2024 at 3:53 pm #15180077 | |
konradC-2 |
Hi Drazen. Thank you for getting back to me. After performing the step #1 something changed - now the English URL data (URL, title, description, etc.) is present in all language versions' og:url and Open Graph JSON. Step #2 changed nothing. Should I revert the Hooks.php edit? Best Regards, Konrad |
January 15, 2024 at 7:29 am #15183154 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello Konrad, thanks for getting back and checking. I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons. You can access the WordPress dashboard using the link below: Kindly follow the steps below: This will help us to report the probable issue to the compatibility team and solve the possible problem faster. - hidden link Regards, |
January 18, 2024 at 7:12 am #15198146 | |
konradC-2 |
Hi Drazen. Thank you for this. |
January 18, 2024 at 7:45 am #15198261 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, domains are not available at this sandbox, but you mentioned the issue happens for you also when using the directory per language option? What URLs do you see now when you are using directeroy option? Also please try check what you see for those specific pages, when WPML is disabled? Let me know. Thanks, |
The topic ‘[Closed] WPML + Yoast, wrong og:url and open graph’ is closed to new replies.