Display Posts Shortcode
[resolved] How to show the time of the post? (3 posts)

  1. slm2011
    Posted 4 years ago #

    I am using this:

    [display-posts category="mycategory" posts_per_page="1" include_date="true" order="DESC" orderby="date"]

    And would like to add the post "time" as well.

    Is this possible?


  2. Bill Erickson
    Plugin Author

    Posted 4 years ago #

    Yes, this is possible, but it will require writing an output filter to add the time. Add this to your theme's functions.php file


  3. slm2011
    Posted 4 years ago #

    Thank you - this worked!

    I now use the following shortcode:
    [display-posts category="mycategory" posts_per_page="1" include_date="true" include_time="true" order="DESC" orderby="datetime"]

    Which now displays the post, followed by the date and the time of the post.

    Thanks again,


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic