• After install this plugin, and test on structured data testing tools 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)
  • It worked!!!! Thank you ??

    I had to do these changes on the “infobar” and “infobox” section, in total 6 changes.

    katn

    (@katn)

    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.