- This topic has 7 replies, 15 voices, and was last updated 9 years, 2 months ago by .
- You must be logged in to reply to this topic.
How can I show the last modified date in my blog post, next to the original date?
And maybe the category, I saw you did that in a blog post.
Is this for the older Celestial theme or Celestial Reloaded?
For Celestial. I think I have the newest version.
With Celestial, you will get the published (created) date on the blog summary view, but also the full post view. Then as for your modified date, this shows below the post (providing you update the post). But if you want this in the post summary as well next to the published date, you will need to modify the content.php file (found in the folder “partials” with the code from the content-single.php file there:
<?php _e( 'Last Modified: ', 'st' ); ?>
You will probably have to edit the styles for it, but that can be done with doing custom CSS.
I am a little confused now. I thought I had the Celestial theme, but if I open it (normally I just use a child theme) it says Celestial Reloaded. It is the paid theme.
That changes things a bit….I just moved this topic to the Celestial Reloaded forum.
On Celestial Reloaded, there is no “Modified” date on the demo site…where did you see this that you mentioned?
You might be able to use the code I pasted above though and put that right after this code in the content.php file:
Sorry about the confusion, I wasn’t aware of the third version of Celestial.
The code worked just like I wanted it. Thank you!
I saw that you showed the category here https://www.styledthemes.com/blog/273-how-you-purchase-single-themes-is-changing
Good to hear the code worked.
Also, not quite sure what you are pointing to on my article I posted?
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
© Copyright © 2023 Styled Themes. All Right Reserved.