the_time()
is for outputting the time at which a post was written, and gets this value from the global $post
.
I’m guessing you just want php’s date()
?
Related Posts:
- Is it safe to use ‘date_default_timezone_set’ in plugin file?
- Finding difference in days
- How to get time difference between publish date and now?
- filter date and time to differents time zone
- Relative time – how to calculate difference beween post publish date and current time
- WordPress outputs mm/dd but it should be opposite
- timestamp and scheduled post irregularities
- How can i display time minus 6 hours
- How get exact time difference
- Human time difference in months instead of days. How?
- admin end post published time display not working correctly
- Calculate how much time passed comparing WordPress comment and current time
- Can someone explain why wordpress uses two column for storing time values?
- Date is showing in unreadable format. How to convert to readable date?
- Proper formatting of post_date for wp_insert_post?
- What’s the difference between get_the_time and get_the_date?
- Default timezone hardcoded as UTC?
- How to convert DateTime() to display time based on WordPress timezone setting?
- Running WP Cron on specific local time
- Why time functions show invalid time zone when using ‘c’ time format?
- Whats the way to format a date after using get_posts()
- Converting Unix timestamp to wordpress date
- Date, Time, and Timezones
- What is the best workaround for supporting all existing DATEs?
- Date format with genitive case of the month name is not working
- datetime picker, timestamps and meta queries
- How do I display posts by day?
- Fixing UTC time – wordpress effects
- Echo Messages By Checking current_time()
- custom field value date convert to unix timestamp problems
- How would I bulk change posting date?
- Query by custom dates in UNIX Time
- If else statement based on date_diff value
- How do I create a dynamically-updated copyright statement?
- How do you format the date as a two digit year? (ex. “10.12.10” instead of “10.12.2010”)
- How can I display the current time? [closed]
- Creating a function within functions.php to change the date
- Calculate future date
- php console log speed [closed]
- display month in french in wordpress/php?
- Timezone UTC to PST
- How do I set up my blog home page to show only this weeke’s posts automatically?
- UTC/local time in Worpdress
- Convert CST published date time to MST timezone
- Randomised Post Time
- Trouble Formatting DateTime
- Placed on + only date (not time)
- Display date and time in comments
- Time Issue xx hours ago
- Get WordPress current date/time
- Separately formatting date elements
- Show the_date with link
- Displaying time & date problem
- Should I escape the attributes when using get_month_link?
- Time & Date on Post – Time Ago Custom Function
- Display time as “12:00 noon” instead of “12:00 pm”
- How do I make a page not visible at a certain time? [closed]
- wordpress blog posts’s time
- Display posts starting from today date
- Separating publish date and last modified
- Why do I need to set my PHP timezone when it’s already set in WordPress?
- How to get User Time Zone in WordPress?
- Compare date fails when date is in next year [closed]
- How to setup language of a date in a plugin
- How to show different timestamp
- Default Timezone setting in WordPress – is that global?
- Problems with the_time,the_date, get_the_time
- Comparing Time with the_time();
- Date time doesn’t show correctly in qTranslate [closed]
- Display upcoming events in the next 30 days by querying posts with timestamp in custom meta
- Timed post and tweet?
- wp_dropdown_categories by date?
- WordPress Translate Date Function is giving Error
- Apply filters on date format
- How to fix mysql2date() for 5.3.2 version?
- Count time from registration date to today
- Update existing post times to random times?
- Incorrect display of bbpress forum topics & replies
- Can’t add to time? [closed]
- Timezone for Plugin
- How to get Unix Local Time?
- Render the published date/time formatted in ISO 8601 using Timber (.twig)
- Change the year of the whole site
- datetime picker, timestamps and meta queries
- Display datetime in user’s timezone
- Pull ‘Popular Posts’ within specific timeframe
- How to display time when page is created and edited
- Block post updates and deletion after a set period
- Replicate the_date function when using a custom field
- How to second orderby in “pre_get_posts” by meta value or combine single date and time to timestamp
- Time sort with meta_key using UNIX timestamp failing due to date differences
- Change the counter in terms of date
- Comment time is same as the post time
- Query sub subpages based on specific date?
- Adding a class to last post in the_date
- Get system timestamp in wordpress
- Show monthly or daily archives
- Standard API for rendering a date form
- Datetime on time tag wordpress puts it outside the tag
- Display the last date, regardless of articles