• Resolved valuxes

    (@valuxes)


    When a post is new, the datetime displays something like this:

    Fri Feb 8 2008 (47 minutes ago)

    I do not want the “(47 minutes ago)” part — how do I get rid of that?

    My code is:

    <?php the_time('D M j Y') ?>

    and the site I am working on is:

    https://www.spotshoppingguide.com/

    Thanks in advance.

    V

Viewing 4 replies - 1 through 4 (of 4 total)
  • thats added either by a plugin or custom code in your theme. You have not provided the url to your blog, nor have you provided the theme name, or a link to the download page, so that we can look at it, so no-one can answer you ant better than this:

    Inside your theme files , look for the_date or the_time — after one of those will be whatever is responsible for that; delete that stuff.

    Thread Starter valuxes

    (@valuxes)

    Thanks whooami!

    It’s my own theme and I just used <?php the_time('D M j Y') ?> to display the date.

    The “(47 minutes ago)” part displays only if it’s today.

    Is this a WordPress built-in feature, and is there a switch or parameter to turn it off?

    Thanks,
    V

    not that I am aware of, no. which is why I mnetioned a plugin — it sounds like you are using the time since plugin.

    Thread Starter valuxes

    (@valuxes)

    Yes, it’s the wp_relativedate plugin I must have installed waaay back when I first started in WordPress!

    It’s deactivated now and displays fine (the way I like it). Should take this opportunity to check the other plugins too.

    Thanks again whooami! I had vision of coding PHP to get around this… pheww.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I remove (47 minutes ago) from date/time?’ is closed to new replies.