• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Date appears two times after editing an article

Date appears two times after editing an article

  • Unknown's avatar
    lindersonk · Member · Nov 12, 2016 at 5:52 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    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)

  • Unknown's avatar
    theblakeadam · Member · Nov 12, 2016 at 6:10 am
    • Copy link Copy link

    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)

  • Unknown's avatar
    lindersonk · Member · Nov 12, 2016 at 6:51 am
    • Copy link Copy link

    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.

Tags

  • date shows two times
  • edit date
  • error
  • post date
  • Tags date

About this topic

  • In: Support
  • 2 participants
  • 2 replies
  • Last activity 9 years
  • Latest reply from lindersonk

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions