Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Unfortunately, I have no idea how to help you on that. WP is pretty much based on the normal date and the datePublished is gotten directly from WP function call and you can see it here https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L1262

    So this is a plugin conflict and it is unlikely it will be solved.

    Thread Starter sina1808

    (@sina1808)

    Hello
    thanks for your reply
    but the ” Yoast WordPress SEO plugin ” can generate normal date :

    <meta property=”og:updated_time” content=”2015-08-12T10:45:40+04:30″ />
    <!– / Yoast WordPress SEO plugin. –>

    Plugin Author Lester Chan

    (@gamerz)

    Interesting, maybe he is using his own function instead of WP default time function

    You can try replacing wp-postratings.php line 1262

    From
    $post_meta .= '<meta itemprop="datePublished" content="' . get_the_time( 'c' ) . '" />';
    To
    $post_meta .= '<meta itemprop="datePublished" content="' . mysql2date( 'c', $post->post_date ) . '" />';

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"datePublished" Error on " google Structured Data Testing Tool "’ is closed to new replies.