Community Forums › Forums › Archived Forums › General Discussion › Default Schema Markup Incorrect?
Tagged: schema
- This topic has 6 replies, 4 voices, and was last updated 10 years, 5 months ago by Brad.
-
AuthorPosts
-
October 14, 2013 at 5:39 am #66608motty07Member
Hi
I’m just wondering whether the schema markup that comes out of the box with Genesis (Metro Pro at least) is incorrect.
If you look at the markup that is produced for a post you will see it’s basically this:
<body itemscope="itemscope" itemtype="http://schema.org/WebPage">
<header class="site-header" role="banner" itemscope="itemscope" itemtype="http://schema.org/WPHeader"></header>
<nav class="nav-primary" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"></nav><main class="content" role="main" itemprop="mainContentOfPage">
<article itemscope="itemscope" itemtype="http://schema.org/CreativeWork">
<header>
<h1>ARTICLE TITLE</h1> </header>TEXT OF ARTICLE
</article>
<article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/UserComments">
COMMENT 1
</article>
<article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/UserComments">
COMMENT 2
</article></main>
<aside class="sidebar sidebar-primary widget-area" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
SIDEBAR
</aside></body>
The thing I notice about this is that the comments do not fall within the itemscope of the article ‘Creative Work’ (the actual article). Doesn’t this mean that the search engines will interpret the comments as being about the webpage and not the article?
If you look at the guidance on the official page: http://schema.org/WebPage
You will see that the reviews or comments for the book fall within the itemscope of the schema.org/Book and NOT schema.org/Webpage.
This seems to be the case on major sites using schema markup (yelp etc). The reviews/comments fall within the itemscope of whatever they are reviewing (restaurant etc.) and not the webpage.
Incidentally, I’m using a custom post type to write my review about a hotel. User reviews come in the comments. I was initially going to change the schema.org/CreativeWork to schema.org/Hotel but then saw that the user reviews would fall outside the scope of schema.org/Hotel.
Your thoughts and solution please.
October 14, 2013 at 5:45 am #66611Brad DaltonParticipantOctober 14, 2013 at 5:52 am #66613motty07MemberThanks Brad. I realise I can customise it.
I'm just wondering whether my thoughts are correct?
As I understand an itemscope should contain all element relating to it. And for an article that should include the comments/reviews.
If I am right, isn't this default a bit dangerous? I doubt the majority of people using Genesis would look into this in detail. And doesn't that mean that there are lots of sites out there where the comments are being seen by the search engines as not related to the article?
October 14, 2013 at 6:33 am #66620motty07MemberFurther more, on Genesis all comments are separate articles. Surely they should be nested within the main article. This site seems to think so:
http://html5doctor.com/the-article-element/
October 14, 2013 at 9:12 am #66652Brad DaltonParticipantI think SEO is an opinion and everyone has one.
Personally, i don't use any SEO plugins however i would use the Genesis Schema plugin for a niche site.
October 14, 2013 at 10:47 am #66673SummerMemberI'm still wrapping my brain around all the schema info out there, but it looks like this plugin doesn't support custom post types.
Bummer, I have a couple of niche sites where this little assist would be helpful 🙂
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkNovember 1, 2013 at 4:35 pm #70399BradMemberSorry I'm so late here but Microdata Manager does support custom post types
In your functions file, add this:
add_post_type_support( 'your-cpt-name', array( 'microdata-manager' ) );
Replace "your-cpt-name" with the actual name of your custom post type
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.