What do I need to include in the HTML of my custom accordion blocks so that Yoast can auto-generate the JSON-LD schema from my custom block? My accordion blocks has a question and answer structure just like what the Yoast FAQ block includes.
Alternatively, I can generate my own JSON-LD schema and add it to the page header but how do I replace the default Yoast schema with my custom schema only on the FAQ page?
]]>The WPSSO developer was contacted and said to reach out to Jetpack support. The Jetpack Boost settings were tested to determine Defer Non-Essential JavaScript toggle switched on triggers the removal.
Looking forward to your response.
]]>For years I have been adding a custom field called “schemamarkup” into which I paste and save the output generated by the Google Structured Data Markup Helper tool.
I have gone several months without posting on my site. Today for a new post, the block editor will no longer save the output from the Google Structured Data Markup Helper tool in a custom field. I paste it into the value input field and click Add Custom Field or Update and the pasted data vanishes and cannot be saved. If I just put the word “test” in the value input field, that is saved. However, I need to save the schema markup. My WordPress installation is fully up to date along with all plugins.
The output I have from the Google Schema Markup Helper tool is of the form:
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "My WordPress Post Title",
"name": "My WordPress Post Title",
"author": {
"@type": "Person",
"name": "Author's Name"
},
"datePublished": "2023-11-01",
"dateModified": "2023-11-01",
"image": "[image URL]",
"articleSection": "(WordPress post category)",
"url": "[post URL]",
"publisher" : {
"@type" : "Organization",
"name" : "my organization's name",
"logo": {
"@type": "ImageObject",
"name": "site logo name",
"width": "600",
"height": "60",
"url": "[logo URL]"
}
}
}
</script>
I have added this type of markup via custom fields successfully for years, starting with the classic editor and then with the block editor once it supported adding custom fields.
Yesterday I edited and saved an existing post with markup data in a custom field and the markup data remained intact. However, I imagine that I’d have trouble if I wanted to edit existing markup data in a custom field and save the updated data.
I’m using a child theme that has this added to header.php to pick up the markup data from the custom field. It’s the last thing included in before the closing tag of the <head> section.
<?php
$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true);
if(!empty($schemamarkup)) {
echo $schemamarkup;
}
?>
The above description has been my routine workflow for years. Something has broken it. How can this be fixed?
Thanks.
]]>In particular, I see warnings in GSC that the following are not set:
offers, organizer, performer and eventStatus.
if not possible in the calendar, perhaps there is some way to add fields in a hook?
Thanks in advance for guidance.
]]>Is there a hook or functionality I can use to build this myself? I am already doing this for my amp content. I know Yoast can generate the strcutured data for web stories but for some internal reasons I am not able to use that plugin for json-ld data.
Thanks!
]]>I recently deployed a website using WordPress and I wanted to use structured schema. It seems like there is a default schema that is generated. Breadcrumbs and Sitelinks are the default Schema Markup generated by AIOSEO, and the FAQ schema comes from your Elementor widget. The default schema generated is incorrect and I want to have more control over what schema I upload and how what type of rich results I am aiming towards.
I want to remove all the JSON-LD from the pages in a safe manner. I don’t know how to access the raw HTML so I can manually remove them. There isn’t a plugin or anything I have come across to get this done in a safe manner.
I tried removing schema on a separate using the “Remove Schema” Plugin but it did not work. Does anyone know a way to remove JSON-LD generated by default, I have been trying to get it done but have been getting stuck and its frustrating. Please let me know.
Thank you!
]]>1) Invalid value in field “priceSpecification” (in “offers”)
2) Missing field “priceType” (in “offers.priceSpecification”)
3) Invalid object type for field “offers”
With a new feature in GSC, these errors have started popping out. rich results are showing the error as well for every product on the klaycart
]]>