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

Display Updated Date Instead of Published Date

Not sure if this is what you are looking for:

Published on <a class="entry-date" href="https://wordpress.stackexchange.com/questions/326851/<?php echo 
get_month_link(get_post_time("Y'),get_post_time('m')); ?>" > 
<span itemprop="datePublished"><?php echo the_modified_date('F j, Y'); ?> 
</span></a>

This will replace the published date by the last modified

Related Posts:

  1. Human Time Diff, change mins to minutes
  2. How do you update post date (year only) in a separate custom field?
  3. How to hide meta from search result only on pages?
  4. How to get posts published between a date and today?
  5. How to check if post meta key exists or not in wordpress database
  6. How to get post creation date?
  7. Changing the post date and time with function
  8. How to add category to: ‘wp-admin/post-new.php’?
  9. How can I retrieve multiple get_post_meta values efficiently?
  10. Code to make a post sticky
  11. Is it possible to Schedule Attachments in WordPress?
  12. How to allow hidden custom fields to be added from wp-admin/post.php?
  13. using wp_update_post on save_post
  14. Export WordPress Posts and Meta Information in CSV format
  15. Delete duplicated wp_postmeta record
  16. How to put last edited entry on top of the blog-post list?
  17. Will a large postmeta table slow a site down?
  18. Update all posts automatically when using post_meta
  19. Query posts from current year
  20. How to batch update post content with custom post meta value
  21. Change slug with custom field
  22. Update existing post dates to random dates
  23. Better post meta efficiency?
  24. featuring old articles without messing up with the archive
  25. Setting post meta data to random value during post status transition / on publish
  26. Edit meta data does’t work with custom sql
  27. How to display an icon when a new post is published and then remove it when a specific time past?
  28. How to output comments number of a post per day?
  29. Display custom post types by date field
  30. Change post format using custom field
  31. Does WP get all post_meta on POST page?
  32. How can I display a specific user’s first published post?
  33. Sanitizing `wp_editor();` Values for Database, Edit, and Display
  34. Exporting Data from WordPress into a flat table
  35. Adding Multiple Values to a Post Meta Key
  36. Can wordpress differentiate between added and updated posts?
  37. Fetch posts from current week (Sunday to Saturday)
  38. Using radio button meta data from a custom meta box
  39. How to set post expiration date and time and move the page to archive after expiration [closed]
  40. PHP Notice error (when on 404 page)
  41. What Is meta_id In wp_postmeta?
  42. Checking if a post with certain meta value exists
  43. How to permanently delete a post meta entry?
  44. Add custom field automatically (add_post_meta) with value based on number of words of article
  45. How to generate numbers indistinguishable for the IDs of the posts
  46. Modify WP_Post before processing
  47. Save re-arranged draggable post items to wordpress database
  48. Display post from specific date
  49. Get random posts between specific dates / of specific age
  50. XML-RPC and post_date
  51. I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?
  52. Change post_date to post_modified date on post template?
  53. Automatically republish old posts
  54. Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
  55. Replace ‘published on date’ with ‘modified on date’ on Posts
  56. pre_get_posts query between 2 dates (date stored in custom post meta)
  57. How can I show many posts an author has per week?
  58. If modified on same day, show only time
  59. How can I sort posts by the date and a custom meta field?
  60. is there a way to show the the post title after the image?
  61. Get Meta Key Value While Saving Post
  62. Update all comments time to random dates?
  63. Force the “Choose from the most used tags” meta box section to always be expanded
  64. Meta value does not save for scheduled posts
  65. Custom Posts Query and meta_query Sort Order
  66. How to compare two posts including their meta fields on a scalable base?
  67. Getting value from get_post_custom
  68. WordPress Sidebar menu for posts based on date – guidance needed
  69. Calling Different Custom Post Timestamps in a table
  70. Is it possible to paste a link without tags and make it directly a link in a post?
  71. date issue with category post retrival
  72. Cannot retrieve a custom RSS field from posts
  73. Saving custom fields to a custom taxonomy
  74. How to get date of post when using wp_get_recent_posts()?
  75. How to automate featured posts number? [duplicate]
  76. Worpdress function for difference dates
  77. Customize rel=canonical tag for single blog post
  78. Change all author links in Blog roll
  79. How to I retrieve the ID from the Posts page?
  80. How to save meta checkbox WordPress
  81. How to calculate the average of a post meta value(Numeric) of a specific author
  82. Changing default WP-Site creation date
  83. Is there any way to tell when wp_postmeta has been updated?
  84. How to get posts published on the latest date?
  85. wpColorPicker – problem with implementation to post meta
  86. Change post author without using wp_update_post()
  87. if in category but only with post meta
  88. What date to use as a post date? date_gmt or modified_date_gmt
  89. wp_query with ajax
  90. Update post meta within save_post action
  91. How to update all posts at once?
  92. Display post number by category
  93. Updating post meta for checkbox
  94. Saving Post Data in Another Database
  95. Assigning Two Different Post Dates For Single Post
  96. Using system date format
  97. Custom permalink for each post
  98. Modify this line to give alternate format date?
  99. How can I tell if a post has been published at least once?
  100. Post: how to set created date after post has been published [closed]
Categories posts Tags date, post-meta, posts
wp_insert_user if user exists
use custom field value as featured image

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