All Attributes
These attributes belong to [herodotus]. Pro attributes require an active, licensed or trial-enabled Pro add-on as well as Free.
| Attribute | Availability | Default | Accepted values and effect |
|---|---|---|---|
layout | Free / Pro | list | Free: list, compact, text. Pro: grid, grid-2, grid-3, grid-4, carousel, carousel-1..4, timeline. |
category | Free / Pro | Empty | Category slug. Pro also accepts comma-separated slugs, matching any listed category. |
limit | Free | 0 | Positive number of events. 0 uses Posts Limit. In Around today, Pro applies the limit per date. |
order | Free | Global setting | ASC or DESC: historical year first, then title within the date. Priority Events in Pro precede ordinary events. |
excerpt_words | Free | 0 | Positive word count. 0 inherits the global setting, falling back to 25. Compact defaults to 10 unless explicitly overridden. |
show_image | Free | true | Use the exact string false to hide the image and placeholder. Text layout always hides images. |
date_mode | Free / Pro | Global setting | Free: today. Pro: today or around. Use date for a fixed date and upcoming/until for a look-ahead range. |
date | Pro | Empty | Fixed month/day as MM-DD, for example 07-20. A fixed date takes precedence over the rolling date mode and upcoming range. |
tag | Pro | Empty | One tag slug or comma-separated tag slugs. Matches any listed tag; combines with category filters. |
exclude_category | Pro | Empty | One category slug or comma-separated category slugs to exclude. |
upcoming | Pro | Global Upcoming Days | 0-60 days ahead, including today. 0 disables this instance's look-ahead range; Around today remains its own mode. |
until | Pro | Empty | End the look-ahead range at MM-DD. Overrides upcoming when valid. A past month/day rolls into next year; the range is capped at 60 days. |
image_shape | Pro | Appearance setting | 1:1, 4:3, 3:2, 16:9, 4:5, 3:4 or 2:3. Slash notation, such as 4/3, is also accepted. |
image_fit | Pro | Appearance setting | whole or crop. CSS aliases contain and cover are also accepted. |
image_place | Pro | Appearance setting | above, left-edge or left. Applies to grid, carousel and timeline; List and Compact already place images beside text. |
Date Modes and Upcoming Events
Today
[herodotus date_mode="today" upcoming="0"]This Pro example selects today without the global upcoming range. In Free, use the plain shortcode or date_mode="today".
Around Today
[herodotus date_mode="around"]Includes yesterday, today and tomorrow. Posts Limit applies per date. A configured upcoming range can extend the forward window while keeping yesterday.
Fixed Date
[herodotus date="07-20"]Uses July 20 regardless of today's month/day. There is no historical-year filter in this attribute.
Upcoming Announcements
- Edit each event you want to announce ahead and tick Upcoming Event.
- Save the event.
- Choose Upcoming Days in Display or set a range on the shortcode.
[herodotus upcoming="14"]
[herodotus until="12-31"]Today is included without requiring the flag. Days ahead require Upcoming Event. Future announcements show Tomorrow or In N days instead of a years-ago counter when applicable. The maximum range is 60 days, including when using until.
Attribute Scope
Combine category, tag and exclusion filters to narrow the same date window. Unknown attributes are ignored. An inactive Pro add-on cannot provide Pro layouts or date features. The native Gutenberg block and the random shortcode accept smaller sets; see Gutenberg Block and Random Events.
