WordPress is a popular website tool. Many people use it to build their websites. Sometimes, you may want to show today’s date on your site. This can help make your site look fresh. It also tells visitors that your content is up to date.

Credit: www.wpbeginner.com
Why Show Today’s Date?
Showing today’s date can be useful. Here are some reasons:
- It shows that your site is current.
- It can help visitors know the date easily.
- It makes your website look more professional.
Ways to Display Today’s Date
There are many ways to display the date in WordPress. We will look at two simple methods:
- Using a plugin.
- Using code.
Using A Plugin
Plugins are small tools that add features to WordPress. Using a plugin is the easiest way to show today’s date. Here’s how to do it:
Step 1: Install the Plugin
First, you need to install a plugin. Follow these steps:
- Go to the WordPress dashboard.
- Click on “Plugins.”
- Click “Add New.”
- Search for “Date and Time Plugin.”
- Choose a plugin and click “Install Now.”
- After installing, click “Activate.”
Step 2: Configure the Plugin
Now, you need to configure the plugin. Here’s how:
- Go to the plugin settings in the dashboard.
- Set the date format you like.
- Save the settings.
Step 3: Add the Date to Your Site
Finally, add the date to your site. Here’s what to do:
- Go to the widget area in the dashboard.
- Find the date widget from the plugin.
- Drag the widget to a sidebar or footer.
- Save the changes.
Using Code
If you like coding, you can add the date with code. This method needs some basic coding skills. Follow these steps:
Step 1: Open Your Theme Editor
First, open the theme editor. Here’s how:
- Go to the WordPress dashboard.
- Click on “Appearance.”
- Click “Theme Editor.”
Step 2: Add the Code
Next, add the code to your theme. Follow these steps:
- Find the file “header.php” or “footer.php.”
- Add this code where you want the date to show:
php echo date('F j, Y'); ?
- Click “Update File” to save the changes.
Step 3: Check Your Site
Finally, check your site to see the date. It should appear where you added the code. If you don’t see it, refresh the page.
Different Date Formats
There are many ways to show the date. Here are some common formats:
Format | Example |
---|---|
F j, Y | January 1, 2023 |
Y-m-d | 2023-01-01 |
m/d/Y | 01/01/2023 |
d/m/Y | 01/01/2023 |
You can choose the format that looks best on your site. To change the format, update the code:
php echo date('YOUR_FORMAT'); ?
Replace “YOUR_FORMAT” with the desired format code.

Credit: themeisle.com
Frequently Asked Questions
How Can I Show Today’s Date In WordPress?
Use a simple shortcode or a date plugin to display today’s date.
What Is The Best Plugin For Displaying Today’s Date?
“WP Date and Time Shortcode” is a popular and easy-to-use plugin for this purpose.
Can I Add Today’s Date Without A Plugin?
Yes, you can use a custom code snippet in your theme’s functions. php file.
How Do I Use A Shortcode To Display Today’s Date?
Add the shortcode [current_date] to your post or page to show today’s date.
Conclusion
Displaying today’s date on your WordPress site is easy. You can use a plugin or add code. Both methods are simple and quick. Choose the one that works best for you. Your site will look more current and professional.
Thank you for reading. We hope this guide helped you. Have a great day!