Archived topic
How to add schema in "Post Meta Template" element type?
5 replies · Started by Hftt on June 7, 2021
Hi...
I use "Elements" extension to create "Post Meta". I like "Inline with avatar" template.
However, schema markup for author name, date posted, etc., do not appear when using template.
Is it a bug?
While I wait for update, is it possible for me to add schema markup myself?
Thanks!
Hi there,
I'm not exactly sure how you've added/created the "post meta". if it's created manually with custom HTML, there may be some attributes missing from it necessary for it to be found and added to the schema.
While I wait for update, is it possible for me to add schema markup myself?
Generally, the best way to sort this out is by using an SEO plugin. These type of plugins normally have schema markup generation features. It makes the schema for your site automatically once active. :)
Hi Elvin
Appreciate your reply.
I like "Rumor" starter template from site library.
But there are some missing schema markups. For example: there is no itemprop="name" for author. Also itemprop="datePublished" is missing in date.
I tried to add needed schema attributes but I received an error message saying: "This block contains unexpected or invalid content."
Is there way to create my own post meta template instead of using premades?
Hi there,
Unfortunately, the block editor and GenerateBlocks don't allow this as of right now.
GenerateBlocks Pro will be adding schema as a possibility in its Custom Attributes feature in the near future.
However, it would be better to use a JSON-LD solution in my opinion, it's much cleaner and more robust than schema markup.
Hi Tom
Please include a "Custom Attribute" function in GenerateBlocks. Such a valuable feature is definitely worth waiting for!
If you don't mind... could you please guide me how to use JSON-LD for adding schema in post meta data?
Thanks much.
It's best to use JSON-LD's site for reference (and questions) - https://json-ld.org/ - I recommend reading the documentation page/s.
You can try using generators as well like this one - https://technicalseo.com/tools/schema-markup-generator/ - but it's not as smooth. You may have to edit the generated json-ld codes to fit your exact requirement.