We'll create fresh WordPress site with WP Date and Time Shortcode installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Shortcode to show any current, past, and future date or time. Display this, previous, or next year, month, day, etc. in your posts and pages.
This is probably the last date and time shortcode plugin you will ever need for your websites since it is very rich in features.
It takes lots of efforts to develop and support a plugin. Please send us your feedback and questions to fix your issue before leaving a bad review.
Are you satisfied by using this plugin? Consider leaving a 5 star review. You can also donate.
If you need support or more information about this free plugin please read the description and the F.A.Q. section below or write in the Support Forum.
Just put one of these shortcodes in your post or page content and they will work out of the box.
[wpdts]
– the main shortcode which works with all attributes; equals to [wpdts-date-time]
by default;[wpdts-date-time]
– default date and time format from WordPress general settings[wpdts-date]
– default date format from WordPress general settings[wpdts-time]
– default time format from WordPress general settings[wpdts-custom]
– custom format using the PHP date and time formatting characters[wpdts-years]
, [wpdts-year]
– 4-digit year e.g. 1999 or 2134[wpdts-year-short]
– 2-digit year e.g. 99 or 34[wpdts-months]
, [wpdts-month]
– month as number (1-12)[wpdts-month-name]
– month as name (January-December)[wpdts-month-name-short]
– month as 3-letter name (Jan-Dec)[wpdts-days]
, [wpdts-day]
– day of month (1-31)[wpdts-hours]
, [wpdts-hour]
– hours (0-24)[wpdts-minutes]
, [wpdts-minute]
– minutes (0-60)[wpdts-seconds]
, [wpdts-second]
– seconds (0-60)[wpdts-timestamp]
– Unix timestamp[wpdts-day-of-year]
– day of the year as number (1-366)[wpdts-days-in-month]
– number of days in the month (28-31)[wpdts-days-in-february]
– number of days in the month of February for the year (28-29)[wpdts-days-in-year]
– number of days in the year (365 or 366)[wpdts-day-of-week]
– day of the week as number (1-7)[wpdts-day-of-week-name]
– day of the week as full name (Monday-Sunday)[wpdts-day-of-week-name-short]
– day of the week as short 3-letter name (Mon-Sun)[wpdts-week-of-year]
– week of year, since first Monday of the year (1-52)[wpdts-am-pm]
– am/pm or AM/PM according to the am_pm attribute (“L” or “U”)[wpdts-time-zone]
– the current time-zone for the shortcode resultIf you need to use the shortcodes in other places (like titles, navigation menus, footers, widgets, etc.) additional code or plugins may be needed to turn them on in your theme if they are not supported by default. See F.A.Q. section for details.
EXAMPLES
If you need to view real-time examples of usage or set up custom attributes to show specific date or time please see the page of WP Date and Time Shortcode on Denra.com.
ATTRIBUTES
If you need more detailed features please use the shortcode attributes.
You can add the following attributes to [wpdts]
to show the date and time that you need:
item
– what date and time information to show. The used values are:
date-time
– default WP date and time format (default value)custom
– custom format using the PHP date and time formatting charactersdate
– default WP date formattime
– default WP time formatyear
, years
– 4-digit yearyear-short
, years-short
– 2-digit yearmonth
, months
– month as number (1-12)month-name
– month as name (January-December)month-name-short
– month as 3-letter name (Jan-Dec)day
, days
– day of month (1-31)hour
, hours
– hours (0-24)minute
, minutes
– minutes (0-60)second
, seconds
– seconds (0-60)timestamp
– Unix timestampday-of-year
– day of the year as number (1-366)days-in-month
– number of days in the month (28-31)days-in-february
– number of days in the month of February for the year (28-29)day-of-week
– day of the week as number (1-7)day-of-week-name
– day of the week as full name (Monday-Sunday)day-of-week-name-short
– day of the week as short 3-letter name (Mon-Sun)week-of-year
– week of year, since first Monday of the year (1-52)am-pm
– am/pm or AM/PM according to the am_pm attribute (“L” or “U”)time-zone
– the current time-zone for the shortcode resultformat
– date format used with the PHP date and time formatting characters only when item
is set to custom
start
– set the basic date and time for the shortcode; defaults to the WordPress time in the current timezone.
now
– the default initial current date and time based on the WordPress General settings time-zonepost-created
– gets the post/page creation date and timepost-created-gmt
– gets the post/page creation date and time GMTpost-modified
– gets the post/page last modification date and timepost-modified-gmt
– gets the post/page last modification date and time GMT next
– move the start date and time to the next coming selected (can have more than one value separated by comma)
mon
, tue
, wed
, thu
, fri
, sat
, sun
– weekday shortname (and with first letter in uppercase)1
–31
– day of monthlast-day-of-month
– the last day of month – 28, 29, 30, or 31time_zone
– select the time-zone for which to display the result from the available PHP time-zones.i18n
– set months and weeks names to be displayed in the current language (‘yes’ by default)days_suffix
– set suffix st, nd, rd, th for the day
and days
item e.g. 1st, 2nd, 3rd, 4th, etc.hours_24
– set 12 or 24 hours format for the hours
item.am_pm
– used with the am-pm
item when 12 hours format is preferred: “L” for lowercase (am, pm) or “U” for uppercase (AM, PM)post_id
– post ID from which to get post-created(-gmt) or post-modified(-gmt)years
– change in years e.g. years="+1"
or years="-1"
before showingmonths
– change in months e.g. months="+2"
or months="-2"
before showingdays
– change in days e.g. days="+7"
or days="-7"
before showinghours
– change in hours e.g. hours="+12"
or hours="-12"
before showingminutes
, minutes_change
– change in minutes e.g. minutes="+30"
or minutes="-30"
before showingseconds
, seconds_change
– change in seconds e.g. seconds="+45"
or seconds="-45"
before showingzero
– show leading zero when months, days, hours, minutes and seconds are displayed. Old ones ‘x-zero’ for each separate item are still supported for compatibility.WP Date and Time Shortcode is fully FREE and contains all main features that are needed by most users. Check them out!
However, since we want to continue supporting this plugin and adding new non-basic features, we have decided to offer a Pro edition with an annual subscription plan offered at a very affordable price per website. We are working hard to release the Pro edition although it took us a little bit more time to prepare it than expected in the beginnig.
What will you get with WP Date and Time Shortcode Pro in the near future?
style
– change font face, color and size;time-zone
browser/IP parameter – modify the shortcode result to the visitor’s timezone (not 100% accurate since it gets the timezone by IP address);counter
– dynamically change displayed values as a ticking text clock;IMPORTANT NOTE: Not all Pro features will be released in the first Pro version since more work and testing is needed for some of them.