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

Change post_date to post_modified date on post template?

use this into the loop or if you want to change created date to modified date than replace that with below code. As I know this feature works from all version of wordpress after 2.1

<?php the_modified_date(); ?>

More detail you can find here http://codex.wordpress.org/Template_Tags/the_modified_date

Related Posts:

  1. Display a post via template
  2. Single post full screen template not inheriting WordPress role permission
  3. How to set a certain Custom Template to a Single Blog Post
  4. When sending a newsletter -not with wordpress- the server has 100% cpu [closed]
  5. Retrieve data from post meta meta_key having ‘_product_fq_image’ while having author_id and post type is PRODUCT
  6. Insert data from custom created PHP page into wp_postmeta table
  7. List all native posts in template page?
  8. Adding a meta box to determine the sidebar [closed]
  9. The loop starting at a certain ID
  10. Sidebar on single.php not showing up
  11. How to Featured content with images in home page?
  12. saving/reading custom field value does not work – no value gets POSTed
  13. Simple Custom Metabox Not Saving
  14. Post Templates and Post ID’s
  15. Get post category as a separate string and url
  16. How do I disable the “by author” hyperlink on posts?
  17. Trying to query all posts in category 4
  18. Output Buffer Issue with Single Post View
  19. add_rewrite_rule and template redirect not working
  20. Prevent 404 of Author pages without posts
  21. Custom post type and taxonomy page templates
  22. How to save template data into wp_post table (post_content column)
  23. Featured Images most often doesnt appear
  24. Post meta not working
  25. How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
  26. How to bulk Update URLs to new values?
  27. Select another post in a post meta like a parent page is selected while editing a page
  28. SQL DELETE multiple post_meta on single and multi-sites
  29. How do I change the template specifically for single posts?
  30. Related post not showing table of content
  31. Post not using taxonomy template
  32. Private post caught in endless redirect loop
  33. Why does my “Add New Post” page have an old post in it?
  34. How to retrieve all meta data directly from the $post object? Such as $post->related_topics?
  35. What is proper filter or hook action to add data to the $post object?
  36. Customizing a new page used for blog posts with Avada theme
  37. Blogposting Schema & Structured Data without plugin
  38. Automatically select template based on query string for New Posts
  39. Display Updated Date Instead of Published Date
  40. How do you update post date (year only) in a separate custom field?
  41. Add postmeta to all blog posts
  42. Single Sidebar; multiple templates! How?
  43. Bulk Post update_post_meta
  44. Re-order Category Meta-data
  45. How to Display Most View Post in the template file?
  46. How to hide meta from search result only on pages?
  47. WP_Query sort by meta_value_num or date
  48. Grab meta data before post is saved
  49. How to fetch posts that are stored in the different table than the default table (wp_posts)?
  50. Use special template for the first post in the loop
  51. Is it possible to query a category with specified posts?
  52. Check if user has avatar
  53. Custom post type template not called
  54. Page 2 has no posts?
  55. alt of attached image in post / pages
  56. single- and archive- templates not being applied to custom post types, not even after flushing permalinks
  57. Creating Ordered Query using Meta_key
  58. Best Way to detect unique posts in wp rest api
  59. Get the correct meta_value with get_post_meta
  60. post_name is not stored until post is published… where should I store my slug until it goes live then?
  61. Filter question list on substring of metavalue
  62. Add a meta to a post submited from a frontend form
  63. How to change post template via url?
  64. how to remove entry meta from wordpress archive category and change its display
  65. My blog “page” used to show a list of posts, but now it’s just showing the page content?
  66. Show posts between two Custom Fields date
  67. Add custom class to existing menu items from custom meta
  68. Custom template for different post types
  69. How to get only current images of a post
  70. Ordering posts alphabetically by meta keys and title
  71. Run function after post is updated
  72. Adding The Post Template Dropdown to WP-Admin
  73. Where should get_post_meta() go to get $post->ID get_post_meta() is empty and $post->ID & get_the_id() are working
  74. Posts page template: How can I edit the markup for this?
  75. Adding custom fields to the Quick Edit screen – puzzled about the column concept
  76. How to arrange different post categories in template
  77. How can I change the look of a post as is displayed
  78. Which hooks are essential for post templates?
  79. Display the first post’s comments of category in comments.php template
  80. 1 post, 2 templates
  81. how to style an individual page in a category [duplicate]
  82. Show related (archive) month and year to post
  83. How to display a certain template element only for posts published within certain time range?
  84. Redirecting posts in WordPress to a specific page
  85. Creating / Editing a post from within site template
  86. How enter custom post meta or custom field on box post list archive page?
  87. custom post type single page template not working
  88. WordPress “Posts Page” isn’t showing template dropdown
  89. How do I create a template page to show 3 blog posts?
  90. WP_query sort by custom meta_key “price”
  91. How to add a new page that will function as a separate blog/news article page
  92. excerpt in template for specific page
  93. If meta_key exists then don’t select this post?
  94. Tag page that displays specific posts
  95. Is there a block to print post link standalone in a block theme?
  96. NewsPaper WP Theme – Additional Related Posts Filter by Time (divTag composer)
  97. What effect can a large wp_post table have on overall site performance?
  98. How can I locate the single buddypress forum post template? [closed]
  99. Site ‘Categories’: save an admin global setting with post metadata [closed]
  100. How to make internal links creating plugin to respect ACF?
Categories posts Tags post-meta, posts, templates
Default Gallery Edit/Template Editable?
WordPress mode for emacs?

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