• Resolved cheonmu

    (@cheonmu)


    Hi,

    I want to change modify date format from month/day, year to 2018-03-24

    I read “How to use the [last-modified] shortcode?” but i dont know how to apply date options in shortcode.

    Please let me know how do i that.

    my website is here

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Evan Mattson

    (@aaemnnosttv)

    As mentioned in the FAQ, you can customize the date format used in the output using standard PHP date format placeholders.

    In your case, to modify the date format to your desired result, you would want to use the following shortcode

    [last-modified datef="Y-m-d" /]

    Note that the default output format includes the time and a separator as well. If you want the output to _only_ contain the date, then you will want to override the format as well, like so:

    [last-modified datef="Y-m-d" format="%date%" /]

    Thread Starter cheonmu

    (@cheonmu)

    @aaemnosttv

    Hi,I really appreciate for your kind response.

    But is it really effective to SEO that the modify date is marked?

    I’d like the modify date appears instead of the publication date when my post is searched in Google.

    Will that be possible if I use this plug-in?

    Thank you.

    Evan, thank you so very much for providing a FULL Shortcode example! Now I can use this with confidence about tweaking my way to the desired approach. You do yourself s disservice by not providing it directly on the main descriptive page.

    Plugin Author Evan Mattson

    (@aaemnnosttv)

    Thanks @wswp2, I will add an example under the FAQ with the instructions.

    Cheers 😀

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to change date format using shortcode?’ is closed to new replies.