Date appears two times after editing an article
-
Date shows twice in the tags between tittle and article. This happens when I edit the article. I want the post date to show, I do not want the edit date to show. I am using SuperAds theme. Here is a sample I copied from my blog. November 8 was the original post date while November 9 was the edit date.
By Meshach K. Koech On November 9, 2016November 8, 2016 In IT Security Tagged Cryptography, Encryption, OSI model Edit
The blog I need help with is: (visible only to logged in users)
-
I was searching through and found this. Hope it helps :-)
http://johnlamansky.com/wordpress/remove-post-dates/
Looks like you just need to add a bit of code to the functions.php file.
mobosx.com
(email visible only to moderators and staff) -
Thank you it worked, for anyone with the same problem, if you wish to show post date only (like in my case), add this to your functions.php
`function jl_remove_post_dates() {
/*add_filter(‘the_date’, ‘__return_false’);*/
/*add_filter(‘the_time’, ‘__return_false’);*/
add_filter(‘the_modified_date’, ‘__return_false’);
/*add_filter(‘get_the_date’, ‘__return_false’);*/
/*add_filter(‘get_the_time’, ‘__return_false’);*/
add_filter(‘get_the_modified_date’, ‘__return_false’);
} add_action(‘loop_start’, ‘jl_remove_post_dates’);Note I commented out the date and time so that I can have them in the post. My problem was date appearing twice.
- The topic ‘Date appears two times after editing an article’ is closed to new replies.