Site logo

Archived topic

Microdata for dates

5 replies · Started by sajid mehmood on February 25, 2020

Viewing posts 1–6 of 6

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.

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 ?

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

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.

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.

This archived topic is closed to new replies.