1) There is no WooCommerce on my blog. Perhaps you meant Yoast SEO?
I turned off all plugins, except for WPML and Yoast SEO - and the issue persisted.
Changing the theme to the default one didn't change it either.
2) When I switch from languages per domain to language per directory, the issue also persisted - showing the spanish URLs with domains, not directories.
That implies that these URLs are not generated automatically, but hard-coded. Perhaps in the translations database.
I didn't find the domain names in String Translations, so I searched for the Spanish Title.
I found it in the three following strings:
admin_texts_wpseo_titles [wpseo_titles]open_graph_frontpage_title
admin_texts_wpseo_titles [wpseo_titles]title-home-wpseo
WP Tagline
And they are all properly translated for all 3 languages.
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.
It's a bit better than Spanish data everywhere, as English version is the main one. 😉
Step #2 changed nothing. Should I revert the Hooks.php edit?
I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
- hidden link
Kindly follow the steps below:
- Set up WPML and Yoast with the same steps as you did on your website
- Install the necessary plugins, only needed. Keep it minimal
- Try to replicate the issue with a simple example
- Share with me step by step guide on how can I check the issue
This will help us to report the probable issue to the compatibility team and solve the possible problem faster.
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,
Drazen
The topic ‘[Closed] WPML + Yoast, wrong og:url and open graph’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.