Time and Date Shortcodes

Version: 1.0 ⭐⭐⭐⭐⭐(1) Compatible with WordPress 6.4.4 Last update: January 14, 2024

Available Shortcodes

Available shortcodes:

  • 10:36:07 AM will display the current time in 12h format
  • 10:36:07 will display the current time in 24h format
  • Friday will display the date of the week
  • 24 displays the current day of the month
  • 05 displays the current month
  • 2024 displays the current year

These shortcodes can be combined to display dates in different formats, for example:

  • 24 05 2024
  • 05.24.2024
  • 24/05/2024
  • 05/24/2024
  • Friday24/05/2024
  • Friday 24/05/2024 10:36:07 AM


How to use the plugin?

Insert shortcode where you want to show them.

Why is the shortcode result not updated for every single visit?

Caching plugin!
If you are using a caching plugin you may need to exclude the page or post with the shortcode from it so the content may be generated dynamically.

Which browsers are supported?

Medium Editor requires modern browsers to work properly.
Currently supports Chrome, Firefox, Safari, IE, and Edge

I have an idea on how to improve this plugin!

Please send all your suggestions and ideas to our email address and they may be developed and included in the plugin in future.

Do shortcodes work in all places e.g. post title, footer, menus, etc.?

No, by default WordPress allows shortcodes to be used only in theb post’s content and widgets.
If your theme does not apply shortcodes in other places automatically you may need to add additional code to your child theme’s functions.php to hook into those functions where you need to see the shortcodes applied.

For example:
// Add Shortcodes to title. add_filter(‘wp_title’, ‘do_shortcode’, 10); add_filter(‘the_title’, ‘do_shortcode’, 10); // Add shortcodes to the menu add_filter(‘walker_nav_menu_start_el’, ‘do_shortcode’, 10);

Another option to allow use of shortcodes anywhere on the website it to use an additional plugin such as Shortcodes Anywhere.

Download for Free the Time & Date Shortcodes WordPress Plugin

Version: 1.0 ⭐⭐⭐⭐⭐(1) Compatible with WordPress 6.4.4 Last update: January 14, 2024