Title: not valid time markup
Last modified: September 3, 2016

---

# not valid time markup

 *  [irmawan hadi saputra](https://wordpress.org/support/users/irmawan-hadi-saputra/)
 * (@irmawan-hadi-saputra)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/not-valid-time-markup/)
 * After install this plugin, and test on [structured data testing tools](https://developers.google.com/structured-data/testing-tool/)
   i have 6 error markup on prep time, cook time, and total time (you have double
   markup code). i think google can’t read cause you forgot to typing time markup
   on your coding.
 * your code source:
 *     ```
       if (!empty($prep_time)) {
       echo <<<HTML
           <div class="blog-yumprint-infobar-section">
             <div class="blog-yumprint-infobar-section-title">$prep_time_text</div>
         <div class="blog-yumprint-infobar-section-data" itemprop="prepTime" datetime="$prep_time_standard">$prep_time <span class="value-title" title="$prep_time_standard"></span></div>
           </div>
       HTML;
         }
       ```
   
 * tray to add time markup like this:
 *     ```
       if (!empty($prep_time)) {
       echo <<<HTML
           <div class="blog-yumprint-infobar-section">
             <div class="blog-yumprint-infobar-section-title">$prep_time_text</div>
         <div class="blog-yumprint-infobar-section-data"> <time itemprop="prepTime" datetime="$prep_time_standard">$prep_time </time><span class="value-title" title="$prep_time_standard"></span></div>
           </div>
       HTML;
         }
       ```
   
 * i hope you can fix this plugin for another user 😀

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [scatmax](https://wordpress.org/support/users/scatmax/)
 * (@scatmax)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/not-valid-time-markup/#post-7968100)
 * It worked!!!! Thank you 🙂
 * I had to do these changes on the “infobar” and “infobox” section, in total 6 
   changes.
 *  [katn](https://wordpress.org/support/users/katn/)
 * (@katn)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/not-valid-time-markup/#post-7968107)
 * I just made the changes suggested above and it worked for me! I had 6 validation
   errors in Google’s Structured Data Testing Tool while using Yumprint’s recipe
   card, and making the changes above fixed all of them. Like scatmax said, you 
   have to make 6 changes in total – preptime cooktime and totaltime for both the
   infobar and infobox sections of code.
 * If I can find a bug report option for yumprint I’ll try to submit this to them.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘not valid time markup’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recipe-card_cfc7c6.svg)
 * [Recipe Card](https://wordpress.org/plugins/recipe-card/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recipe-card/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recipe-card/)
 * [Active Topics](https://wordpress.org/support/plugin/recipe-card/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recipe-card/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recipe-card/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [katn](https://wordpress.org/support/users/katn/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/not-valid-time-markup/#post-7968107)