• One more bug I found.

    For each post I have a rating bar and 3 Easy Digital Downloads purchase buttons.

    With Enable Google Rich Snippets? enabled it messes up the structured data of Easy Digital Downloads purchase buttons, so if you have 10 posts on a page with a purchase button and a rating bar in each post, W3 Validator will throw hundreds of errors.

    For example with Google Rich Snippets disabled the 3 purchase buttons I have for a post will output:

    <span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
      <meta itemprop="price" content="24.99" />
      <meta itemprop="priceCurrency" content="USD" />
    </span>
    <span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
      <meta itemprop="price" content="54.99" />
      <meta itemprop="priceCurrency" content="USD" />
    </span>
    <span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
      <meta itemprop="price" content="99.99" />
      <meta itemprop="priceCurrency" content="USD" />
    </span>
    

    Which throws no errors. Enable Google Rich Snippets and those purchase buttons turn into:

    <meta itemprop="headline" content="Drown (w/ Hook)" /><meta itemprop="description" content="
    
     BUY A LICENSE
    
    	 Purchase "Drown (w/ Hook)"
    	
    
    	$24.99
    	Basic License
    	
    	
    	$54.99
    	Premium License
    	
    	
    	$99.99
    	Unlimited License
    	
    	
    	$19.99 Add-on
    	Track Separation
    	
    	
    	Continue Shopping   
    
    with hook" />

    It’s like WP-PostRatings is stripping all of Easy Digital Downloads’ structured data and labeling the purchase buttons as the content. I know you don’t really support this plugin much anymore so not sure if you want to deal with this or not. I can e-mail you my test website link if you want to check it out.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Sho-Down

    (@sho-down)

    Hang on, I’m doing some digging. I think this may be an All In One SEO Pack issue. I’ll update in a bit.

    Thread Starter Sho-Down

    (@sho-down)

    Ok, it’s only happening on certain page templates and single.php. I’ll do some deep testing and let you know if I figure it out unless you have an idea what it could be.

    Thread Starter Sho-Down

    (@sho-down)

    I think what WP-PostRatings is doing is lumping the entire post content into the “content” tag of the itemprop.

    <meta itemprop="description" content=" " >

    So anything inside the post is automatically added to the content tag. I have Easy Digital Downloads purchase buttons inside posts which have their own structured data, WP-PostRatings is stripping that structured data and just adding the text to “content=”

    Any way around this or am I gonna have to disable Rich Snippets in your plugin?

    Plugin Author Lester Chan

    (@gamerz)

    I think if you are technical, I would recommend you disable the rich snippet of this plugin and code it yourself to your theme manually.

    Thread Starter Sho-Down

    (@sho-down)

    Ok thanks, I’ll start doing some research. I’ll probably have to edit your plugin right? Since I use [ratings] in each post.

    Or is there a way to add rich snippets just to star ratings through only theme files and functions.php?

    Plugin Author Lester Chan

    (@gamerz)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Google Rich Snippets and Easy Digital Downloads’ is closed to new replies.