Title: datePublished
Last modified: September 29, 2020

---

# datePublished

 *  [wpbh](https://wordpress.org/support/users/wpbh/)
 * (@wpbh)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/)
 * Hi,
 * Google’s structured data testing tool reports an error in the date of the topic’s
   posts.
 * The message is this:
 * datePublished
 * 28 Sep 2020 (The 28 Sep 2020 value could not be understood as a date / time. 
   Learn more about date / time formats.)
 * How can I solve the problem?
 * I have already configured several different date formats in the WordPress dashboard,
   but it did not solve the problem.
 * Thanks a lot for the help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatepublished%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13471665)
 * Hey,
    Where are you seeing this message? What version of Virtue theme are you
   using? If you’re up to date on the theme, plugins, and of WordPress then I suggest
   deactivating your plugins to test if any are conflicting. Let me know if there’s
   no change!
 * Best,
    Hannah
 *  Thread Starter [wpbh](https://wordpress.org/support/users/wpbh/)
 * (@wpbh)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13473317)
 * Hi,
 * The message is given by Google’s structured data testing tool.
 * You can see it below:
 * [https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2F](https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2F)
 * When entering, click on BlogPosting, the amount of errors will appear in red,
   just click on each one.
 * Ah, there is no conflict with any plugin. According to Google, the error is due
   to the date format that is not in the ISO standard.
 * This is the line of code for the error:
 * <div class=”postmeta updated color_gray”>
    <div class=”postdate bg-lightgray 
   headerfont” itemprop=”datePublished”> <span class=”postday”><?php echo get_the_date(‘
   j’); ?></span> <?php echo get_the_date(‘M Y’);?> </div> </div>
 * Best regards!
 *  Thread Starter [wpbh](https://wordpress.org/support/users/wpbh/)
 * (@wpbh)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13498369)
 * Hi,
 * Were you able to view the Google structured data page?
 * If you have not been able to view the error in more detail, just click this link:
 * [https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2F](https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2F)
 * Thank you!
 * best regards
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13504207)
 * Hey,
    Sorry for the delay! I’ll pass this to the developer and see what insight
   he has. Thanks for your patience!
 * Best,
    Hannah
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13511392)
 * Hey,
    I’ve put this to be included in the next free theme version.
 * If you need to fix right now open the templates/post-date.php file and replace
   the contents with this:
 *     ```
       <div class="postmeta updated color_gray">
       		<div class="postdate bg-lightgray headerfont">
       			<meta itemprop="datePublished" content="<?php echo esc_attr( get_the_modified_date( 'c' ) ); ?>">
       			<span class="postday"><?php echo get_the_date( 'j' ); ?></span>
       			<?php echo esc_html( get_the_date( 'M Y' ) ); ?>
       		</div>
       	</div>
       ```
   
 *  Thread Starter [wpbh](https://wordpress.org/support/users/wpbh/)
 * (@wpbh)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13513375)
 * Ben,
 * It worked, the error I reported was resolved, but now the same error is in the
   carousel of related posts, in the similarblog-carousel.php file.
 * See the error:
 * [https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2Ffamosas-em-versoes-originais-de-nascimento%2F](https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2Ffamosas-em-versoes-originais-de-nascimento%2F)
 * Can you help me with this other mistake?
 * Thank you very much, developer!
 *  Thread Starter [wpbh](https://wordpress.org/support/users/wpbh/)
 * (@wpbh)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13527874)
 * Hey,
 * Were you able to see the other error I mentioned?
 * If you were unable to view it, just click here:
 * [https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2Ffamosas-em-versoes-originais-de-nascimento%2F](https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fwww.blogdoheroi.com.br%2Ffamosas-em-versoes-originais-de-nascimento%2F)
 * Thank you very much.
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13530740)
 * Sorry for the delay [@wpbh](https://wordpress.org/support/users/wpbh/)! I’ll 
   make sure Ben looks into this and gets back to you asap.
 * Hannah
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13531585)
 * I updated the theme you should see this resolved after you update.
 * Ben
 *  Thread Starter [wpbh](https://wordpress.org/support/users/wpbh/)
 * (@wpbh)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13532630)
 * Hi,
 * Sorry to bother you so much.
 * Thank you very much. I’m glad there will be an update with the fix.
 * Thank you, Hannah. Thank you, Ben!
 * WPBH
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13533735)
 * We’re happy to help!
 * All the best,
    Hannah

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

The topic ‘datePublished’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.14/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

## Tags

 * [datePublished](https://wordpress.org/support/topic-tag/datepublished/)
 * [erro](https://wordpress.org/support/topic-tag/erro/)

 * 11 replies
 * 3 participants
 * Last reply from: [hannah](https://wordpress.org/support/users/hannahritner/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/datepublished/#post-13533735)
 * Status: not resolved