• Resolved abramt

    (@abramt)


    {
    "@type": "BreadcrumbList",
    "@id": "https://www.domain.com/guides/test-post/#breadcrumb",
    "itemListElement": [
    {
    "@type": "ListItem",
    "position": 1,
    "name": "Domain",
    "item": "https://www.domain.com/"
    },
    {
    "@type": "ListItem",
    "position": 2,
    "name": "Guides",
    "item": "https://www.domain.com/category/guides/"
    },
    {
    "@type": "ListItem",
    "position": 3,
    "name": "Test Post Configuration in [year]"
    }
    ]
    },

    As you can see above the [year] isn’t rendering correctly in the JSON-LD Schema. I works fine in the Webpage type but not in breadcrumb.

    add_filter('wpseo_schema_webpage', function($data) {
        $data['name'] = do_shortcode($data['name']);
        return $data;
    });

    Is there a way to add in the BreadcrumbList part as well for the name.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gaurav Tiwari

    (@gauravtiwari)

    Hi, sorry for the delay. I am not sure why you are having the issue. Can you direct me to your website so that I can check it for myself?

    I have Yoast installed on one of my sites, and JSON looks really fine:

    https://share.cleanshot.com/QwspBK7D

    Plugin Author Gaurav Tiwari

    (@gauravtiwari)

    For the time being I have marked this as resolved. Feel free to revert back if the issue still persists.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not Rendering in Yoast Breadcrumb JSON-LD Schema’ is closed to new replies.