• Resolved jnystrom

    (@jnystrom)


    Hey all, is there a way to display not only post date but also time stamp of when the post was posted? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cyclonecode

    (@cyclonecode)

    Yes, you should be able to do this by changing the date format under the settings page, for instance using H-i-s would display the hour, minute and second the post was published. You can read more about the different time formats here: https://www.php.net/manual/en/datetime.format.php

    Thread Starter jnystrom

    (@jnystrom)

    Thanks! That seems to work – on the feed page. But how do I make sure it’s also displayed on each individual feed item page? As of now, the individual item page doesn’t display timestamp – or intro. I would like both these items to be rendered on each post’s page. Can that be done?

    • This reply was modified 1 year, 5 months ago by jnystrom.
    Plugin Author cyclonecode

    (@cyclonecode)

    Then you would need to override the template used to render a single article by copying the following file cision-block/src/Frontend/cision-block-post.php into the root or into a templates folder in your active theme, then you can add something like this in the template in order to display a date for the post:

    <time><?php echo date('Y-m-d H:i:s', $CisionItem->PublishDate); ?></time>

    Hope this helps.

    • This reply was modified 1 year, 5 months ago by cyclonecode.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Time stamp in feed intro’ is closed to new replies.