The Movable Type Knowledge Base

Dates Only Show Up For Some Entries

Question

When I post more than one entry per day, the date only shows up for the most recent entry. How do I make the date show for every entry?

Answer

The default templates use the <MTDateHeader> container tag to control the display of entry dates:

<MTDateHeader>
<h2><$MTEntryDate format="%x"$></h2>
</MTDateHeader>

The MTDateHeader tag is a container tag, and the contents of this container will be displayed only if this entry marks a new day in the list of entries.

So, in order to have the date display for all entries, you must remove the <MTDateHeader> and </MTDateHeader> tags from your template(s).

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.