Not Rendering in Yoast Breadcrumb JSON-LD Schema
-
{ "@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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not Rendering in Yoast Breadcrumb JSON-LD Schema’ is closed to new replies.