WordPress plugin

WP Date and Time Shortcode Pro

WP Date and Time Shortcode displays current, past and future dates or times in WordPress posts and pages. WP Date and Time Shortcode Pro is presented as a planned annual-subscription edition. Its listed additions may not all be part of the first release.

WP Date and Time Shortcode Pro

WP Date and Time Shortcode displays current, past and future dates or times in WordPress posts and pages. WP Date and Time Shortcode Pro is presented as a planned annual-subscription edition. Its listed additions may not all be part of the first release.

Choose what the shortcode displays

The main [wpdts] shortcode supports the available attributes and defaults to the WordPress date and time format. Other shortcode forms use the default date or time format, a custom format with PHP date and time characters, or individual values such as the year, month, day, hour, minute, second, Unix timestamp, day or week of the year, and days in a month or year. Month and weekday values can appear as numbers, full names or abbreviations.

Set the date and adjust the result

Output can start from the current WordPress time, a fixed or relative date and time, or a post or page creation or modification time, including GMT variants. The next attribute can select the next matching weekday, day of the month or final day of the month. Attributes can add or subtract years, months, days, hours, minutes or seconds. Other settings control day suffixes, letter case, 12- or 24-hour time and leading zeros.

Planned Pro additions

  • Cached pages: JavaScript display is listed for date and time results on cached pages.
  • Event and visit dates: Proposed starting values include first and last visits, Catholic and Orthodox Easter, Passover, Hanukkah, Mother’s Day, Father’s Day, Thanksgiving, Black Friday, Cyber Monday, Christmas, New Year and Chinese New Year. Visit information may be saved as a cookie, session or user option when possible.
  • Visitor time zones: A browser or IP-based time-zone parameter can modify the result. IP-based detection may be inaccurate.
  • Presentation and counters: The listed style option changes font face, color and size; the counter option updates displayed values as a ticking text clock.
  • Shortcode Wizard: A step-by-step interface helps make configured shortcodes.

Place shortcodes in WordPress

Add a shortcode to a post or page and configure its attributes for the desired date, format, adjustment or display behavior. Titles, navigation menus, footers, widgets and other theme areas may need extra code or a extension if the active theme does not process shortcodes there.