get_the_date and/or get_the_time will return the date/time of the post rather than printing it.
Related Posts:
- How to schedule multiple posts while adding new
- order posts by date like craigslist
- How to get the latest posting time of archived pages in WordPress?
- How to insert current date/time in the content of a post?
- Automatically Updating Publish Date Bug
- How can I show many posts an author has per week?
- If modified on same day, show only time
- Prevent scheduled post being published if date/time is past current date/time
- Automatically add date to the auto generation of post slug
- How i can limit period of post publication?
- Changing default WP-Site creation date
- tribe_get_start_time displays the current date and time on other post types than tribe_events
- Get the most recently modified post date of most recently modified post
- How to show different timestamp
- Date is wrong on ‘all posts’ page
- change the post time on multiple posts
- Access last visit time to a post
- Post navigation using date
- Bulk update published posts date randomly using wp-cli?
- How do you update post date (year only) in a separate custom field?
- How to handle dates, trying to calculate time since a post
- date_query returning only the most recent post instead of the post published before today
- Is there a action hook for the “Empty Trash” button?
- Strategy for handling hierarchical pages with empty parent content
- How to merge two or more WordPress posts?
- Sort posts by popularity/page views
- Writing a view count with w3 total cache
- Utilising posts with various post types & categories?
- Single.php Active Category Class
- Specific loop in Shortcode
- Search widget breaks when using multiple loops?
- Remove image from post also removes photo from media library
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- How to create multiple version of single post
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- how to know if the post has pagination () or not
- Remove Shortcode […] from Blog Preview
- I want to query posts in monthly basis
- White Blank Page when Updating and Publishing Page/Post
- Full Width Main Post
- Posts vs. Pages
- Plain permalinks not working!
- How can I find out what items a user has purchased? [closed]
- Nothing Found error when creating new posts – how to correct this?
- Display multiple custom taxonomy values on single custom post types page?
- Underscores Theme Unit Testing – Catching Untitled Posts
- How to do set post permalinks using 6 digit random unique function?
- Encountering “Wrong nonce. Action prohibitied.” when trying to alter User Role and unable to Post via WP Admin
- Is Hfeed class for all pages needed
- Visual (non-HTML) display of post revisions [closed]
- How can I hide tags on a child-category page, if that tag has not been used?
- One post on my website is going to a 404 page
- How can I get a table with the number of published posts by date?
- An array of latest wp_titles
- posts not showing on index.php
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Page template is accessing the incorrect posts?
- Is it possible to use WP_Query to only pull posts with attachments?
- disable Tab post on nav-menus page (Admin)
- Second get_permalink inside loop points to wrong URL
- How to make the home screen of my blog not show full posts?
- Best Way to Add UnEditable HTML to Posts
- Use Click Image to Play Youtube Video in a WordPress Loop
- Stop wordpress from creating empty/null entries
- Force a specific template as default
- How to make Link to go on the first post
- Stop post submission without losing data?
- How to Rearrange WordPress Tags list on frontend using Shortcode with specific order?
- Site/Post preview is not working on all social media
- Add a field in my rest api
- Custom post grid
- Getting image data from phone camera (MediaDevices.getUserMedia) into user post
- How to hide protected posts from archive?
- Template with ACF and Pagebuilder
- “read more” redirects to the wrong page
- Settings missing from the add new post page
- Posting or Updating Article Fails on WordPress [closed]
- Replace Tag Keyword With Link Within Post Content
- New blog post published notification – Buddypress
- Custom post styling per category?
- What is the difference between options and custom fields (meta) in WordPress?
- Show posts from last 3 years in posts page
- My custom query is displaying random posts in random order
- Output wp_link_pages as raw url
- Send Newsletter-Email when post changes
- Display the latest post from some selected authors
- Add custom class to existing menu items from custom meta
- Post Publish Metaxbox on a Front End Page
- Multiple loops on a Search result page?
- WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1
- How do I display a full post, not just an excerpt?
- Stop Authors from submitting spam post
- Simple method to generate posts from files
- Published posts counter [closed]
- change page name on page list
- How can I add a custom caclulation form in post?
- Displaying all images from a WordPress post (including media library)
- WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link
- editPost without undo entry
- Cant display custom post type posts from a specific category WordPress