Support » Plugin: Schema App Structured Data » Published Time

  • Resolved Amir


    Hi šŸ™‚

    I have an issue with published time. I want to be sure that the issue is related to your plugin or not.

    Because My site is in Persian, so my readers are in Iran and we use different calendar called Shamsi.

    So Iranian users install a plugin named “wp parsidate” to convert every Gregorian date to Shamsi. (So dates convert to shamsi which shown to readers)

    Ok, so now if you see the source of this link, you can see these parameters:

    Yoast Plugin:
    <meta property=”article:published_time” content=”2017-06-07T17:57:45+04:30″/>

    Schema App Plugin:

    Rating Stars Plugin:
    “datePublished”: “2017-06-07T17:57:45+00:00”
    “dateModified”: “2017-06-07T17:57:45+00:00”

    Ok so the problem is, schema app detects Shamsi date for published date and that gives me an error in structured tools.

    How is that possible, rating stars plugin detects Gregorian for published date but you detect Shamsi one? Is this something that should be fixed on your side?

    Thanks for your time and support šŸ™‚

Viewing 3 replies - 16 through 18 (of 18 total)
  • Selva


    Actually two days before I have installed this plugin. I have checked with schema tool, the datePublished is showed 1970-01-01. Then I have checked with code. In page.php datePublished array was assigned this variable date(ā€˜Y-m-dā€™, strtotime( $post-post_date ) ), then I have changed to date(ā€˜Y-m-dā€™, strtotime( $post->post_date ) ). If the same is reflected in the plugin too then we do not have any issues.


    Plugin Author vberkel



    Today we released a maintenance update, reverting to the get_the_date() function. The reason is that $post->post_date is going to be empty for many users because WP had a bug/issue that only updated the modified time when post was created in certain cases. This change creates more problems (not just the typo you noticed) on our side and therefore we go back to the built-in WP get_the_date function.

    To accomplish what you want, the best solution is to add Schema App plugin to the whitelist by editing WP-Parsidate plugin file. Your second option would be to use the hunch_schema_markup filter.

    Sorry for the confusion.

    Hey thank you so much for explanation šŸ™‚

    “Your second option would be to use the hunch_schema_markup filter.”

    Just can you tell me how can I use this? If I use this method, I don’t need to modify the plugin with each update?

    Thanks again

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Published Time’ is closed to new replies.