add this code in functions.php file
add_filter( 'the_title', 'ta_modified_post_title');
function ta_modified_post_title ($title) {
global $post;
$mynewdate = strtotime($post->post_date);
$title = $title.'<span class="modified">'.date('Y',$mynewdate).'</span>'.'-<span class="modified">'.date('d',$mynewdate).'</span>-'.'<span class="modified">'.date('m',$mynewdate).'</span>';
return $title;
}
modify date by your own way.
Related Posts:
- Stop WordPress automatically adding tags to post content
- Print Current Post Index number within Loop
- How to prevent posts from being published too close to each other?
- Front-End Post Submission
- Let private posts stay in status “private” after edit through “editors”
- how to get a different html for odd/even posts?
- How to manually link posts to each other in WordPress
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- How do I create a link that will always show the latest post?
- How to display posts by current user/author in a custom page template?
- Display all search results
- featuring old articles without messing up with the archive
- Add default content to post (for specific category)
- Setting pagination for images attached to a post
- Display most recent post in category instead of archive?
- Is there a plugin that creates a WP post based on a Twitter account’s hashtag?
- blog page showing only first post
- Human Time Diff, change mins to minutes
- POST from jQuery to PHP
- get_post_custom stripping styling issue
- How do I programmatically add an image to a post?
- problem to delete page
- Display the latest posts, published in the last hour, with WP_Query
- Including text at the end of every post
- same template for multiple custom post type single
- Allowing the SoundCloud player to appear in a post excerpt
- Display the Content of a Post with qTip2
- Scheduled posting not working
- The correct way to call posts with ajax
- How do I batch create revisions of all posts?
- ‘transition_post_status’ only fires when pressing “Add New”
- How to get only text from wordpress post content?
- I want to show category in the post title , how can I do
- I want to get title name of post, but i didn’t get by this code. Any suggestion?
- How to modify post content?
- Allow public to post on blog
- Facebook doesn’t display the related thumbail for some posts
- How to re-post an old post?
- Multiple loops are not reset
- Emojis replaced by ‘?’ automatically
- Creating a post from data returned from HTML form
- Using ajax on editing a category edit page?
- Do action on publish or update?
- How to get posts and comments amount per hour, per year and per month?
- Get Post’s first image using Short-code
- Delete post results in “Cannot delete or update a parent row: a foreign key constraint fails”
- Change all author links in Blog roll
- How to I retrieve the ID from the Posts page?
- Let both the admin and post author update comment meta
- Modify posts listing at back end
- WordPress Query Posts From Category Post on Static Page
- How to update all posts at once?
- How to allow multiple thumbnail upload for Posts?
- Loop through posts? Want to remove extra newlines in actual post HTML/content on backend
- Random posts that always include a particular post?
- How to remove text and retain in caption image using the_content function
- Show number of posts by logged in user
- How does WP decide how to display a page
- Cannot implement byline into posts container in single.php
- Insert data from custom created PHP page into wp_postmeta table
- Internal linking to posts permalink fail because of spaces and stripe at postname
- alternative to wp_link_pages() that only shows link to last page
- How to exclude the word “class” from being matched in search?
- Count user posts and store the number for later use
- Link to older links
- WordPress Excerpt Paragraph Limiting
- display jumps to the bottom, dosnt start at the top?
- How to determine if a post was last edited in the Visual Editor
- How to implement a WordPress comments function?
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- How can I restore posts from ‘trash’ with their previous post_status? – WordPress
- Shortcode for Comments and Comment Boxes in Post Loop
- “Blog pages show at most” in setting not working
- My page shows some other content in WP
- Weird problem occurs while using WordPress REST API to create new post
- WordPress get tags in “publish_post” hook
- Dropdown Select Post Filter
- What permissions does a role need for the user to be assigned as the author of a post?
- Add postmeta to all blog posts
- Enable HTML Tags in WordPress Post excerpt
- Checking if a post contains an html tag
- If taxonomy has more than 6 posts, display show all
- How to give priority to page than to posts permalink structure?
- Compare date of user’s last posts
- Add category information beneath post?
- Post are not showing up
- how to remove entry meta from wordpress archive category and change its display
- Save/retrieve form data best practises for theme development
- Can’t seem to replicate permalink structure for localhost development site
- Changing permalink of custom category
- Special Query: Title, Terms, Content – %LIKE%
- Error establishing a database connection
- How to limit the number of posts a user can publish based on user type
- WordPress Custom Theme: My site shows the same posts on Page 1 and Page 2 and so on [duplicate]
- posts_per_page – Repeats only first posts ‘post__in’ array
- Add News Feed to bespoke website, only to one page on whole site
- How to display my categories in a list (to a post, not the sidebar)?
- WordPress post enumeration
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Trying to create parent for post. I need some help. Thanks