• Guide
  • Introduction
    • Mission
    • Key Products
  • Domain Name
    • Managing Domain Settings
    • Domain Privacy
  • Hosting
    • Setting Up a Website
    • Managing Hosting Resources
  • Website Builder
    • Designing a Website Without Coding
    • Customization and Templates
  • WordPress Hosting
    • Installing and Configuring WordPress
    • Managing Plugins and Themes
  • Email Services
    • Email Features
    • Email Security
  • Security and SSL
    • Configuring SSL certificates
    • Protecting Against Common Threats
  • Marketing
    • SEO Basics
    • Email Marketing
  • Support
    • Knowledge Base
    • Community Forums

Build An eCommerce Website with US Domain Center

International eCommerce Website Design Company and eCommerce Website Development Agency using USDomainCenter

  • Home
  • WooCommerce
  • Website Builder
  • Marketing Agency
  • Services
  • About
  • Contact

January 15, 2024

Beginner’s Guide: How to Display Today’s Date in WordPress (2 Easy Methods) with US Domain Center

Displaying today’s date on your WordPress website hosted with US Domain Center can be helpful for various purposes, such as indicating the latest updates or providing current information to your visitors. In this beginner-friendly guide, we’ll explore two easy methods to display today’s date on your WordPress site.

Method 1: Using PHP Code in Theme Files

This method involves adding a simple PHP code snippet to your WordPress theme files to display today’s date.

Step 1: Access Your WordPress Dashboard

Log in to your WordPress admin dashboard by visiting your website’s domain followed by “/wp-admin” (e.g., www.yourdomain.com/wp-admin).

Step 2: Edit Theme Files

  1. Navigate to “Appearance” > “Theme Editor” in the WordPress dashboard.
  2. Select the theme files where you want to display today’s date. Common locations include “header.php”, “footer.php”, or “sidebar.php”.

Step 3: Insert PHP Code

Insert the following PHP code snippet wherever you want to display today’s date:

php
<?php echo date('F j, Y'); ?>

This code will output today’s date in the format “Month Day, Year” (e.g., February 18, 2024).

Step 4: Save Changes

After adding the PHP code snippet, click on the “Update File” button to save your changes.

Method 2: Using a WordPress Plugin

If you’re not comfortable editing theme files or prefer a more user-friendly approach, you can use a WordPress plugin to display today’s date.

Step 1: Install and Activate the “WP Date and Time Shortcode” Plugin

  1. Navigate to “Plugins” > “Add New” in the WordPress dashboard.
  2. Search for the “WP Date and Time Shortcode” plugin.
  3. Click on the “Install Now” button next to the plugin, followed by the “Activate” button to activate the plugin on your site.

Step 2: Insert Shortcode

Once the plugin is activated, you can insert the [wp_date] shortcode into any post, page, or widget where you want to display today’s date.

Conclusion

By following these two easy methods, you can display today’s date on your WordPress website hosted with US Domain Center. Whether you prefer to add a PHP code snippet directly to your theme files or use a WordPress plugin for added convenience, both options allow you to provide up-to-date information to your visitors. Experiment with different display locations and formats to find the style that best fits your website’s design and content. With today’s date prominently displayed, you can keep your visitors informed and engaged with the latest updates on your WordPress site.

Article by admin / WP Tutorials / Date

Subscribe to our newsletter and be the first to know about new worksheets and other educational resources!

eCommerce Solutions Provider

Welcome to BigbSmallb, a leading e-commerce company with offices in New York and California. About Us At BigbSmallb, we're proud to be recognized as an award-winning e-commerce website development and digital marketing firm. With a presence in New York and California since 2004, we've partnered … Continue Reading




Recent Posts

  • Step-by-Step Tutorial: Creating a Magento E-commerce Website with US Domain Center
  • How to Easily Create a Social Network Website in WordPress with US Domain Center: A Beginner’s Guide
  • Unlocking Exclusive Content: The Power of WooCommerce Memberships
  • How to Create a Job Board Website in WordPress with US Domain Center: A Beginner’s Guide
  • How to Create a Blog or Personal Website with US Domain Center: A Beginner’s Guide

US Domain Center

US Domain Center, a domain and hosting company that BigbSmallB both uses and recommends.

US Domain Center: (480) 624-2500
24/7 Support Expert Support

Popular

  • Domain Name
  • Web Hosting
  • Web Hosting Plus
  • WordPress Hosting
  • Website Builder
  • Microsoft 365 Email

Recommended

  • Domain Transfer
  • SEO Tools
  • Website Security
  • VPS Hosting
  • Dedicated Server
  • Comprehensive Guide

Useful

  • Bulk Registration
  • Bulk Transfer
  • Domain Backorder
  • WooCommerce Hosting
  • Website Backup
  • Managed SSL

US Domain Center

  • Login Page
  • Create Account
  • Recover Username
  • Recover Password
  • Microsoft 365 Login
  • Help Center
  • Home
  • WooCommerce
  • Website Builder
  • Marketing Agency
  • Services
  • About
  • Contact

Copyright © 2025 · BigB SmallB · All Rights Reserved.