-
Hello,
Thanks for the great plugin.
I noticed what seems to be a bug. The default schema for a post type is not being applied to the opengraph meta tags, and only applies when one is set on the post/page level.
If you take a look in the Opengraph class in
/includes/modules/schema/class-opengraph.phparound line 44 you’ll see that it checks for schemas against the current post only, and ignores any global level schema that has been set for a post type. This results in some missing meta tags.For example: if I set the default schema for posts as “Article” the meta tag
article:published_timeandarticle:modified_timewill be missing from all the posts unless I set the schema type as “Article” on the individual posts. This is not practical if I have thousands of posts.The default schema is being applied to the JSON schema and is only missing in the meta tags.
Please address this.
Thank you.
– David
The ticket ‘Fix default schema not being applied to the opengraph meta tags’ is closed to new replies.