Date System: Day + Month + Year¶
Unlike standard WordPress posts that use a publication date, Herodotus uses a custom date system based on three separate meta fields:
How It Works¶
| Meta Key | Type | Example |
|---|---|---|
_herodotus_day |
Integer (1–31) | 20 |
_herodotus_month |
Integer (1–12) | 7 |
_herodotus_year |
Integer | 1969 |
The Logic¶
When someone visits your page with [herodotus]:
- The plugin reads the current date from WordPress (respecting your timezone settings).
- It queries all
herodotus_postentries where: _herodotus_day= today's day_herodotus_month= today's month- Results are displayed in the chosen layout.
The year of the event is NOT used for matching — it's only displayed as a badge on the event card. This is what makes events truly recurring.
Example¶
You create an event: - Day: 14 - Month: 3 - Year: 1879 - Title: "Albert Einstein's Birthday"
This event will appear every March 14th, regardless of the current year. The "1879" badge shows visitors when the event originally occurred.
Timezone Handling¶
The plugin strictly respects your WordPress timezone setting
(Settings → General → Timezone). If your site is set to
Europe/Berlin, "today" is determined by Berlin time, not UTC.