| 开发者 | jquinn33 |
|---|---|
| 更新时间 | 2026年11月12日 01:36 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pjcal] shortcode on a page, and you get:
pjcal_purge_cache for other caching plugins.[pjcal] with no attributes uses the defaults from Settings → PJ Event Timeline. Attributes:
title, eyebrow — heading and the small text above it.now_title, past_title, empty_now — section titles and the message shown when nothing is upcoming.image — attachment ID or image URL for the hero photo (default: the site-wide photo from Settings, otherwise the page's featured image; "none" for no photo). focus — CSS object-position, e.g. "50% 20%".layout — top (default: the photo is a banner above the dates) or side (pinned beside the dates on wide screens).scheme — light or dark. accent — wine, coral, pink, ocean, forest, slate, custom (the color picked under Settings) or any hex color such as #0f6e8c.category — comma-separated category slugs to show only those categories.open_years — how many year groups start expanded (default 2).now_limit — show this many upcoming dates, with the rest behind a "Show N more" button (default 0 = all).show_stats, show_search, show_filters — yes or no.show — both (default), upcoming or past to show only one section.fullbleed="yes" — break out of a boxed content area to full viewport width.[pjcal title="Tour Dates" scheme="dark" accent="ocean" image="123" category="concerts,festivals"]
For developers
Filters: pjcal_default_settings, pjcal_default_atts, pjcal_accent_presets, pjcal_accent_hex, pjcal_items, pjcal_venue_map_url, pjcal_l10n, pjcal_wrapper_classes, pjcal_wrapper_style, pjcal_save_meta, pjcal_settings_tabs, pjcal_shortcode_reference_rows.
Actions: pjcal_settings_page_load, pjcal_settings_after, pjcal_settings_tab_content, pjcal_shortcode_reference_after, pjcal_meta_box_fields, pjcal_before_now, pjcal_after_past, pjcal_purge_cache.
Themes can restyle by overriding CSS custom properties on .pjcal (e.g. --pjcal-accent, --pjcal-top for a fixed header height, --pjcal-head / --pjcal-body for fonts). The front-end script fires a pjcal:rendered DOM event once a timeline has rendered.
External services
None by default. If you enter a Font stylesheet URL under Settings → PJ Event Timeline → Typography (for example a Google Fonts link), that stylesheet is loaded from the address you entered on pages that show a timeline, so that service receives the visitor's IP address and browser details like any web request. For Google Fonts see the Google Privacy Policy and Terms of Service. Map pins are ordinary links to Google Maps and contact Google only when a visitor clicks one.
Every feature in this plugin is free, with no license key, trial or usage limit.
Add-ons
PJ Event Timeline Pro is a separate plugin sold on purejeannius.com. It adds tools that are not part of this plugin: a month-grid view, a subscribable calendar feed for Apple Calendar, Outlook and Google Calendar, Google event listings (schema.org Event data), CSV import and export, "Add to calendar" links on upcoming dates, and a compact next-dates list for sidebars and footers.
pj-calendar folder to /wp-content/plugins/, or install it from Plugins → Add New.[pjcal] to any page. Set defaults under Settings → PJ Event Timeline.No. Dates are not public posts; they only appear inside the timeline on the page where you place the shortcode.
The day after its end date (or its start date, for one-day entries). This happens in the visitor's browser, so page caching does not delay it.
No — that split is automatic. Every date is in Now & Next until its end date passes, then it appears under Past Dates; the admin list has the same Current & Upcoming / Past filters. Categories are for the kind of date (concert, festival, studio…).
Put each date in a category and use the category attribute: [pjcal category="band"] on one page, [pjcal category="solo"] on another.
Yes. Under Settings → PJ Event Timeline pick a preset or any accent color, set background, card and text colors, and name your heading and body fonts (plus an optional web-font stylesheet if your theme doesn't load them). For one timeline, use accent="#0f6e8c". Themes can also override the CSS custom properties on .pjcal.
From past dates only, excluding categories flagged as projects. The first number adds up each date's count field (default 1 per date), the second counts distinct State / province / country values, the third is the span of years between the first and most recent past date. The labels are editable under Settings → PJ Event Timeline.
PJCAL_Settings::header() and PJCAL_Settings::sections(), and extra tabs now sit on a card.accent="#hex" per timeline.