Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Time & Date on Post – Time Ago Custom Function

$mytimestamp = date(get_option('date_format'), strtotime($date)) . ' at ' . date(get_option('time_format'), strtotime($date));   

Related Posts:

  1. Why time functions show invalid time zone when using ‘c’ time format?
  2. How to extract data from a post meta serialized array?
  3. Query between two meta values?
  4. How to store post meta in an array?
  5. How to show Published date and/or Modified date
  6. get_*_meta doesn’t always return an array
  7. Unset field from an array not working as expected
  8. Saving repeated option values when querying in Published, draft and all
  9. Post meta as array looks like string instead of array
  10. Can A Post Meta Field Store multiple values that are not in an array?
  11. Array of user ids to list of user names
  12. Randomizing Post Links Outside of Loop – No Author or Date
  13. update_post_meta() updating nested array in Multidimensional array with empty sub-array
  14. Post Publish date not display on Umaya Child themes
  15. How can I update this array built from post meta data?
  16. What format is this and how to get value “lal” and “pila” from it
  17. How to get posts by meta value as multi-dimensional array?
  18. No more get_option(‘date_time’) in WordPress 5.5?
  19. Multiple meta key and value search in the query
  20. Fetching array of postmeta with $wpdb and in_array conditional
  21. Sorting meta box values by start- and enddate and all dates in between
  22. wp_postmeta store multiple values in one key [closed]
  23. How do I retrieve the slug of the current page?
  24. How to get WordPress Time Zone setting?
  25. Most efficient way to get posts with postmeta
  26. Get posts by meta value
  27. Explanation of update_post_(meta/term)_cache
  28. How to save an array with one metakey in postmeta?
  29. WordPress is stripping escape backslashes from JSON strings in post_meta
  30. How can I get the post ID from a WP_Query loop?
  31. Check if Post Title exists, Insert post if doesn’t, Add Incremental # to Meta if does
  32. How to store widget fields data as an array?
  33. Order by meta value or date?
  34. How to update_post_meta value as array
  35. Adding meta tag without plugin
  36. What’s the point of get_post_meta’s $single param?
  37. What is the different between an attachment in wp_posts and an attachment in wp_postmeta?
  38. How to edit a post meta data in a Gutenberg Block?
  39. Sanitizing integer input for update_post_meta
  40. post formats – how to switch meta boxes when changing format?
  41. Execute action after post is saved with all related post_meta records (data)
  42. Lack of composite indexes for meta tables
  43. Get a single post by a unique meta value
  44. if get_post_meta is empty do something
  45. How we get_post_meta without post id
  46. How get post id from meta value
  47. What is the code to get the download link for a product in WooCommerce?
  48. Safe to delete blank postmeta?
  49. advanced custom fields update_field for field type: Taxonomy
  50. update_post_meta not saving when value is zero
  51. Content hooks vs User hooks
  52. Meta compare with date (stored as string) not working
  53. When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
  54. Ordering posts having multiple post-meta date fields
  55. Trying to get custom post meta through Jetpack JSON API [closed]
  56. get_option function
  57. How to update/insert custom field(post meta) data with wordpress REST API?
  58. How can merge two arrays values in one array and save in database
  59. What is the advantage of the wp_options design pattern?
  60. Restrict post edit/delete based on user ID and custom field
  61. Settings API – save an array of options as one setting (array_push?)
  62. get_post_meta returning empty string when data shows in the database
  63. publish_post action hook doesn’t give post_meta_data
  64. Remove WordPress.org Meta link
  65. Remove post meta keys
  66. How to access the post meta of a post that has just been published?
  67. Converting Unix timestamp to wordpress date
  68. Why is get_post_meta returning an array when I specify it as single?
  69. Date, Time, and Timezones
  70. How to update/delete array in post meta value?
  71. How to get all term meta for a taxonomy – getting term_meta for taxonomy
  72. Adding an assisting editor box to Post page
  73. Is it possible to store arrays in a custom field?
  74. delete unused postmeta
  75. Should I sanitize custom post meta if it is going to be escaped later?
  76. How to update single value in multi dimensional Post Meta?
  77. Add post meta based on another post meta value before publish post
  78. Updating wp_options with an array on save_post results in duplicated entries
  79. Is it safe to use ‘date_default_timezone_set’ in plugin file?
  80. How do I retrieve multi-dimensional arrays from the wp_postmeta table, & display on a website?
  81. Front-end update_post_meta snippet displays white screen?
  82. Save both current and new version of post meta
  83. Get Advanced Custom Fields values before saving [closed]
  84. datetime picker, timestamps and meta queries
  85. Give extra post-meta to RSS feeds
  86. How to get meta value in wp_attachment_metadata
  87. WP REST API “rest_no_route” when trying to update meta
  88. Clean up output added via wp_head()
  89. List posts under meta_value heading
  90. How to fetch serialized data from wordpress options
  91. Modify Date Format to German
  92. Why am I getting an infinite loop with have_posts?
  93. get_post_meta – get a single value
  94. delete value 0 in post meta [closed]
  95. update_post_meta from data in multidimensional array created from a form
  96. Can I safely delete a record, manually, in the wp postmeta table?
  97. Multiple entries in get_option results? or why is _multiwidget set to 1?
  98. What action hook updates post meta?
  99. Can’t translate the post meta data (Date) in another language
  100. get_post_meta / update_post_meta array
Categories post-meta Tags array, date-time, options, post-meta, timestamp
save_post action doesn’t passing post id to my function as argument
Starting a WordPress site

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress