add timestamp to posts
-
Topic
-
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.
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: timestamp
How do i add timestamps to posts?
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.
sorry, the post links the date but i want to add the actual time of the post with the date
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.
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
the default date and time in settings didnt work, but adding the format as custom, it added the time in the post.
thank you