• Resolved crawford4

    (@crawford4)


    Hello Yoast SEO

    My site is using WPML with pages in English and French. I am looking at the schema output for the English homepage.

    For the Organization type, the URLs are mostly for the French pages:

    “@type”: “Organization”,
    “@id”: “https://fr.bigchateau.com/#organization,
    “name”: “Big Chateau”,
    “url”: “https://fr.bigchateau.com/,

    For the Webpage type, the URLs are a mixture. The main id is an English URL but the “isPartOf” id is a French URL:

    “@type”: “WebPage”,
    “@id”: “https://bigchateau.com/contact/#webpage,
    “url”: “https://bigchateau.com/contact/,
    “name”: “Contact us – Chateau d’Hallines, Northern France”,
    “isPartOf”: {
    “@id”: “https://fr.bigchateau.com/#website

    This can’t be right. I’ve looked at your code and tried to work out how you retrieve the Home URL but I can’t get to the bottom of it.

    What I would hope for is that the schema reports the English URLs on English pages and the French URLs on French pages.

    Please help.

    Thank you.

    • This topic was modified 4 years, 4 months ago by crawford4.
    • This topic was modified 4 years, 4 months ago by crawford4.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @crawford4,

    It’s not clear if WPML supports changing the schema data depending on the language of the page. To help us troubleshoot, we’d like to get the following information:

    1. Are all your plugins and themes updated? If not, does updating solve the problem?

    2. Have you installed WPML’s Yoast SEO Multilingual plugin? If not, does this change the structured data?

    3. Can you let us know more about your site setup? Are you using WPML with subdomains?
    Are you using a single or multisite installation?

    4. Check for conflicts. Does the correct schema data appear if you deactivate all plugins except for Yoast SEO and switch to a default WordPress theme?

    Thread Starter crawford4

    (@crawford4)

    Hi Priscilla

    Thank you for responding.

    All my plugins and themes are updated. This is a single site installation with the subdomain fr.bigchateau.com for the French side.

    I’m running the tests you suggested to see if I can identify a cause.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Thanks for your confirmation. Please let us know once you have completed the conflict check so that we can move forward with the investigation further.

    Thread Starter crawford4

    (@crawford4)

    I think the issue is fixed.

    I didn’t have WPML’s Yoast SEO Multilingual plugin installed, so I installed it and the schema looks much better now. I don’t think this plugin changes the schema directly, but it might be improving the reporting of the page metadata.

    Thank you for your help.

    Thanks for the update! We’re glad that helped.

    You’re welcome to create a new forum topic if you have any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong URL in schema’ is closed to new replies.