This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Tagged: 

add timestamp to posts

  • Creator
    Topic
  • #14809
    head_surfer
    Participant

    How do i add timestamps to posts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #14815
    Jason Bobich
    Keymaster

    Hello,

    Can you try to be more specific as to what you’re setting up? And what you’re trying to add a timestamp to? And what you mean by a timestamp? Our framework comes with many ways to utilize posts, and so I’m not quite sure what you’re referring to, specifically.

    #14820
    head_surfer
    Participant

    sorry, the post links the date but i want to add the actual time of the post with the date

    #14826
    Jason Bobich
    Keymaster

    This will be a customization you’ll need to make from a child theme. —

    When a single post displays, or a post in a post list (i.e. like a “blog” for example), below the post’s title, it will say the date of the post, the author, the category, and the number of comments. We call this the “meta” information. This meta information is outputted from the function themeblvd_get_meta found in /framework/includes/parts.php. If you wanted to restructure this output in any way, you’ll see there is a filter “themeblvd_meta” on the returned output for the function.

    http://dev.themeblvd.com/tutorial/filters/

    You could also copy content.php or content-list.php to your child theme and write out your own PHP there to display what you want instead of using the themeblvd_get_meta function.

    http://dev.themeblvd.com/tutorial/editable-content-files/

    #14827
    Jason Bobich
    Keymaster

    Actually, come to think of it, here’s another thing you can try without any kind of code customization. —

    Go to Settings > General, and just put in a custom date format that includes the time like:

    g:ia, F j, Y

    The g:ia is the timestamp —

    g = The hour
    i = The minute
    a = am or pm

    http://codex.wordpress.org/Formatting_Date_and_Time

    #14833
    head_surfer
    Participant

    the default date and time in settings didnt work, but adding the format as custom, it added the time in the post.

    thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.