• Hello there!

    How would I select different time formats for both the comments and posts?
    For example the post date will be: 11/11/2015 and when a user posts a comment the comment date will be ’11 November 2015′.

    I know you can globbaly change the format in the WordPress options, but this changes them both simultaneously. Which is not what I want.

    Thank you in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    what theme are you using?

    Thread Starter vJoeyz

    (@vjoeyz)

    Currently I am using the Suits theme (ver 1.2).

    Moderator t-p

    (@t-p)

    I recommend asking in this theme’s dedicated support sub-forum for better results so its developers and users can help you with this:
    https://www.ads-software.com/support/theme/suits

    Thread Starter vJoeyz

    (@vjoeyz)

    Sorry but I am pretty sure it’s not a theme specific question.

    the theme uses th generic commment output via wp_list_comments() which calls get_comment_date() which in turn uses get_option('date_format')

    to get a different time format for comment dates, you could:
    – either create a callback function based on the default comment output but with a fixed coded format for comment dates,
    – or add a functionality before calling the comments to change the date format option and change it back to default after the comments.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different time formats on comments and posts?’ is closed to new replies.