Okay
  Public Ticket #354544
Blog post date
Closed

Comments

  • Mark started the conversation

    On blog pages the date appears as a day and month (but not year) under the blog type icon.

    I get quite a few hits on posts from previous years. Ideally I would like to display the posting date in the same line as the tags and categories under the post title. 

    (It would be great if this appeared in the blog options.)

    I have tried looking at the php but can't work out how to add this in. Can anyone let me know what I need to do?

  •  1,973
    Support replied

    Hi,

    you can add posting date in the same line with tags and categories in /blog-post-format/post-common.php 

    we are using

    date_i18n( __('date/time format here'), get_post_time() )

    to render the time

    http://codex.wordpress.org/Function_Reference/date...

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Mark replied privately
  • Mark replied

    Sorry, I can't get this working. I added this code...

     | <?php date_i18n( __('j F Y'), get_post_time() ) ?>

    It creates the pipe character but doesn't add the post time/date. I'd be very grateful if you could let me know what I am doing wrong.

    Thanks

  •  1,973
    Support replied

    add 'echo' before the function so that will be displayed 

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Mark replied privately