• Resolved crypto

    (@crypto)


    I use the following shortcut:
    [display-posts include_excerpt=”true” wrapper=”div” posts_per_page=”1″ include_date=”true” category=”news” offset=”0″ image_size=”thumbnail”]

    And the result post is displayed with date like 12/31/2016 however wordpress options are configured to display dates in other format: 31.12.2016

    How to fix output of your plugin?

    Thanks in advance

    https://wordpress.org/plugins/display-posts-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    You can specify a date format using the date_format parameter. If none is specified, it uses a plugin default of (n/j/Y). It does not use the WordPress option.

    [display-posts include_excerpt=”true” wrapper=”div” posts_per_page=”1″ include_date=”true” date_format=”j.n.Y” category=”news” offset=”0″ image_size=”thumbnail”]

    Thread Starter crypto

    (@crypto)

    Thanks a lot!
    date_format=”j.m.Y” worked just fine

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

The topic ‘Incorrect date format in output’ is closed to new replies.