Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am using WordPress and I am planning to use schema.org attributes to optimize the site for SEO. Because of WordPress' structure, I am forced to put the itemprop=text on a div, containing both the whole content of the article (which is fine), but also a div which contains a ratingblock with thumbs...

Is this fine or not? Will this be a problem? I know it's not optimal, but I guess I don't have another choice. Example:

<article id="post-29436" itemtype="http://schema.org/BlogPosting" itemscope="">
<header>
<div class="post-entry" itemprop="text">
<div>
<div class="thumblock ">
<img of a thumb>
<img of a thumb>
<p>
content of postcontent of postcontent of postcontent of post
<p>
</div>
</div>
share|improve this question
add comment

1 Answer 1

itemprop="description" should only be used on descriptive texts, for example a product description. To use it elsewhere could be considered a spammy practice. I doubt you'd get penalised for it, but I'm guessing you will want to use the tags correctly. I believe that using them incorrectly won't result in the desired effect anyways. The whole point of using these tags is to tell search engines for example, what the data is meant for. Giving the entire <article> itemprop="description" would probably not be useful.

I do not understand what you mean with "because of Wordpress' structure". You can put whatever tag you want, on anything you want within the content area. Just use the code view. If it strips the tags after save, look into replacing TinyMCE with something else. A bit off topic but oh well.. :)

share|improve this answer
    
Well, it's not that simple to add a class on a wrapper contaning the wp_content. Anyhow, how come than that Yoast's site is using the exact same structure you are describing? He has an article with itemprop="description. –  Johan Aug 8 '13 at 20:29
    
If you want to add the itemprop="description" to something outside the scope of what you can edit in the wordpress editor, then you'll have to do it in your theme files. I've looked through Yoast's site, and I can't find any itemprop="description" in the code... Paste the URL –  Patrik Alienus Aug 9 '13 at 11:02
    
True. It's itemprop="text" indeed. My fault :) –  Johan Aug 9 '13 at 11:56
    
Okay so... does that fundamentally change this question? :) –  Patrik Alienus Aug 10 '13 at 9:10
    
No. Did I say that? –  Johan Aug 11 '13 at 14:37
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.