WordPress.org

Ready to get started?Download WordPress

Forums

Last Modified Timestamp
[resolved] How to Suppress Time Output? (2 posts)

  1. michaelnorth
    Member
    Posted 3 months ago #

    Hi, nice plugin!

    Is there any way to completely suppress the time output of the shortcode? Please post an example. Right now, I'm using this:

    [last-modified datef="F j, Y"]

    but I still get the time appended:

    May 14, 2014 @ 18:38

    Thanks!

    https://wordpress.org/plugins/last-modified-timestamp/

  2. aaemnnosttv
    Member
    Plugin Author

    Posted 1 month ago #

    Hi Michael,

    Yes, the datef attribute only applies to the date format.
    To modify the time format, you will want to use the 'timef' attribute.

    However, simply setting the 'timef' attribute to an empty string to eliminate it will not have the desired effect - it would also not remove the separator (@) either.

    To get an output of simply the date only, use this shortcode:
    [last-modified format="%date%"]

    Cheers!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags