[Support request] Microdata for dates

Home Forums Support Microdata for dates

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1176682
    sajid mehmood

    Hi,

    I want to show both dates in microdate in source code. Publish Date and Updated Date (datemodified)

    But want to hide publish date on post with css. It still should show in soruce code

    here is Example:
    Last updated: <time class=”updated” datetime=”2020-02-11T07:03:08+00:00″ itemprop=”dateModified”>February 11, 2020</time><time class=”entry-date published” datetime=”2020-02-01T08:39:27+00:00″ itemprop=”datePublished”>February 1, 2020</time>

    Thanks.

    #1176822
    Tom
    Lead Developer
    Lead Developer
    #1177055
    sajid mehmood

    Hi,

    If u look at example, it’s microdata

    Last updated: <time class=”updated” datetime=”2020-02-11T07:03:08+00:00″ itemprop=”dateModified”>February 11, 2020</time><time class=”entry-date published” datetime=”2020-02-01T08:39:27+00:00″ itemprop=”datePublished”>February 1, 2020</time>

    How to put both dates in microdata format ?

    #1177769
    Tom
    Lead Developer
    Lead Developer

    I’m not too sure what you mean. What HTML output are you hoping for?

    #1178196
    sajid mehmood

    I want this html out put

    Last updated: <time class=”updated” datetime=”2020-02-11T07:03:08+00:00″ itemprop=”dateModified”>February 11, 2020</time><time class=”entry-date published” datetime=”2020-02-01T08:39:27+00:00″ itemprop=”datePublished”>February 1, 2020</time>

    but here hide publish date on post, but still show above code in html.

    #1178385
    David
    Staff
    Customer Support

    Hi there,

    can you link us to your site so we can take a look.
    You can edit your original topic and use the Site URL field to share the link privately.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.