Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@srikat
Created September 26, 2013 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/6711784 to your computer and use it in GitHub Desktop.
Save srikat/6711784 to your computer and use it in GitHub Desktop.
Views plugins' Content Template code to display month and day for each post. Details: http://sridharkatakam.com/show-calendar-style-dates-recent-posts-list/
<article>
<header>
<h4><a title="[wpv-post-title]" href="[wpv-post-url]">[wpv-post-title]</a></h4>
<em class="date">
<time datetime="[wpv-post-date format="c"]" itemprop="datePublished">
<span class="month">[wpv-post-date format="M"]</span>
<span class="day">[wpv-post-date format="j"]</span>
</time>
</em>
</header>
[wpv-post-excerpt length="100"]
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment