Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @droidafrica

    Thanks for the support topic, The datePublished seems to be invalid property type for the Product schema the valid types are productionDate, purchaseDate, releaseDate. you can learn more about them here

    It seems the datePublished microdata is attached for a date on which comments are published which is invalid, you can convert them into Reviews.

    That being said the microdata is part of your theme and not the AMP plugin so It will be the best approach to ask for support from your theme author who can advise you better on this one.

    Thread Starter Stephen Ekpa

    (@droidafrica)

    It seems the datePublished microdata is attached for a date on which comments are published which is invalid, you can convert them into Reviews.

    Thank you for your reply sir….

    Please do you have any simple suggestion on how I can convert them to reviews, please…There were actually meant to be reviews

    Thread Starter Stephen Ekpa

    (@droidafrica)

    Yes…So I search the internet about your suggestion above, and I was able to implement the idea…Thanks.

    Just one more thing sir:
    Remember the aim is to add AMP support to a custom post, now everything seem Okay, except that my menu is not working.
    * The menu and search icon works on the standard none AMP site (both for default post and the custom post type)
    * But in AMP, it only works on default wp post AMP pages, but it does not work on the custom post AMP pages.

    Any help or suggestion is highly appreciated

    Just a side note:
    This issue not entirely AMP issue; my theme provider should be able to give a better hand on this; but I’m currently using Newsmag from tagdiv, and they said the plugin I’m trying to achieve AMP on, is not among the plugin they have tested with their theme, hence can not provide any support for it….So I can’t get support from them on this!.

    Thanks

    • This reply was modified 3 years, 7 months ago by Stephen Ekpa.
    Plugin Support Milind More

    (@milindmore22)

    Hello @droidafrica

    Thanks for the update, in case you are still looking for a solution you can check the example here

    <div itemscope itemtype="https://schema.org/Product">
      <span itemprop="name">Kenmore White 17" Microwave</span>
      <img itemprop="image" src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
      <div itemprop="aggregateRating"
        itemscope itemtype="https://schema.org/AggregateRating">
       Rated <span itemprop="ratingValue">3.5</span>/5
       based on <span itemprop="reviewCount">11</span> customer reviews
      </div>
    
      <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    
        <!--price is 1000, a number, with locale-specific thousands separator
        and decimal mark, and the $ character is marked up with the
        machine-readable code "USD" -->
        <span itemprop="priceCurrency" content="USD">$</span><span
              itemprop="price" content="1000.00">1,000.00</span>
    
        <link itemprop="availability" href="https://schema.org/InStock" />In stock
      </div>
    
      Product description:
      <span itemprop="description">0.7 cubic feet countertop microwave.
      Has six preset cooking categories and convenience features like
      Add-A-Minute and Child Lock.</span>
    
      Customer reviews:
    
      <div itemprop="review" itemscope itemtype="https://schema.org/Review">
        <span itemprop="name">Not a happy camper</span> -
        by <span itemprop="author">Ellie</span>,
        <meta itemprop="datePublished" content="2011-04-01">April 1, 2011
        <div itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
          <meta itemprop="worstRating" content = "1">
          <span itemprop="ratingValue">1</span>/
          <span itemprop="bestRating">5</span>stars
        </div>
        <span itemprop="reviewBody">The lamp burned out and now I have to replace
        it. </span>
      </div>
    
      <div itemprop="review" itemscope itemtype="https://schema.org/Review">
        <span itemprop="name">Value purchase</span> -
        by <span itemprop="author">Lucas</span>,
        <meta itemprop="datePublished" content="2011-03-25">March 25, 2011
        <div itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
          <meta itemprop="worstRating" content = "1"/>
          <span itemprop="ratingValue">4</span>/
          <span itemprop="bestRating">5</span>stars
        </div>
        <span itemprop="reviewBody">Great microwave for the price. It is small and
        fits in my apartment.</span>
      </div>
      ...
    </div>

    Just a side note:
    This issue not entirely AMP issue; my theme provider should be able to give a better hand on this; but I’m currently using Newsmag from tagdiv, and they said the plugin I’m trying to achieve AMP on, is not among the plugin they have tested with their theme, hence can not provide any support for it….So I can’t get support from them on this!.

    That’s a strange claim from their support team They have mentioned the Official AMP plugin in their site and documentation and don’t want to support it?

    Regarding Menu please try their Mobile plugin as mentioned in thier documentation since the issue is not related AMP plugin and the theme you are using is premium I can’t help you further.

    @droidafrica As we haven’t received a response, I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘datePublished warning in product AMP pages’ is closed to new replies.