Three posts went live on the same Tuesday, and only the first one shows a date. The other two look as if they were never published. If that sounds familiar, your site is not broken. It is one of the oldest quirks in WordPress, and it is only one of several reasons a post date can quietly disappear.
Dates matter more than they seem. Readers use them to judge whether advice is still current, and Google uses them to understand how fresh a page is. This guide shows how to find out why your dates are missing, how to bring them back in both classic and block themes, and how to show a last updated date without confusing Google.
Table of ContentsToggle Table of Content
Five reasons the date is missing
Most missing dates come from the theme, not from WordPress itself. The fastest way to find the cause is to check whether dates are missing everywhere, only on some posts or only on the blog page. This table covers the causes we find most often when clients ask us to fix their blogs.
| Cause | How to spot it | How to fix it |
|---|---|---|
| The theme hides dates in its settings | Dates are missing on every post | Look in Appearance, Customize, or the theme options panel for a setting such as post meta or show date |
| A block theme template has no date block | You use a block theme and dates never appear | Open the Site Editor, edit the Single Posts template and add the Post Date block |
| The theme uses the_date() in a list | Only the first post of each day shows a date | Replace the_date() with get_the_date() or the_time() in the theme file |
| A custom post type uses its own template | Normal posts show dates, but portfolio or news items do not | Add the date to that post type’s template, or ask your developer to |
| Dates are hidden with CSS or a page builder | The date appears in the page source but not on screen | Remove the hiding rule in the custom CSS or the page builder template |
The third row catches many people. The official WordPress documentation explains that the_date() prints a date only when it is different from the date before it, so several posts from the same day share one date. In classic themes, the safe choice is get_the_date(), which returns the date for every single post.
Should you show the date at all?
Some site owners hide dates on purpose, worried that old dates make their content look stale. That usually backfires. Readers trust a visible date more than none at all, and an old guide without a date makes people wonder what else is hidden. The better fix for old content is to update it, which is what we do for clients through our content marketing service.
Google’s own guidance on byline dates, which it updated last December, gives three simple rules. Show a clear, visible date labelled as published or last updated. Add the same date to your structured data as datePublished and dateModified. And make sure the visible date and the structured data always match. Google also warns against future dates, and it does not promise to show a date in results even when you follow every rule. You can read the details in Google’s guide to byline dates in Google Search.
Show a last updated date the right way
For guides and other evergreen posts, a last updated date is often more useful than the original publish date. In a block theme, you can add the Post Date block to your single post template and switch it to show the last modified date in the block settings. In a classic theme, a small change to the template file does the job. This example shows the updated date only when the post was changed at least one day after it was published.
<?php
$published = get_the_time( 'U' );
$modified = get_the_modified_time( 'U' );
if ( $modified >= $published + DAY_IN_SECONDS ) {
echo '<p class="post-updated">Last updated ' . esc_html( get_the_modified_date() ) . '</p>';
} else {
echo '<p class="post-date">Published ' . esc_html( get_the_date() ) . '</p>';
}
?>
Only change the updated date when you have really improved the post, such as new facts, new examples or a rewritten section. Fixing a typo is not a reason to tell readers and Google the page is new.
Missing dates are often a sign of a theme that is hard to change. When we build custom themes as part of our WordPress development work, dates, authors and structured data are built in and stay consistent on every post. If you would rather not edit theme files yourself, our care plans include small fixes like this, and our SEO service checks that your dates and structured data match what Google expects.