Site logo

Archived topic

Time/Date on Blog Posts

11 replies · Started by Stuart on June 20, 2019

Viewing posts 1–12 of 12

Is there a way to turn off the time and date stamp on blog posts? If so, can this be done for individual posts or is it an "all or none" thing?

Thank you, Leo. I will look at these things later today.

No problem :)

Happy to help with the coding part if you need.

I don't understand the code part.

$options['date'] = false;

Are you saying that I have to go into the site code and change this line of code to "true" when I want the date shown in a blog post, and then go back into the code to change it to "false" when I do not want the date shown?

I don't really understand this but if you would be so kind as to provide the code I need to create an option for turning on or off the date stamp on the blog posts, and tell me where and how to insert it, I will try it.

Thank you.

There isn't an option for turning it on/off for individual posts.

My code above would be the closest solution.

You will need to replace 17 in the code to the actual post id you want to turn it off.

If there are multiple posts, you can use an array:
is_single( array( 17, 19, 1, 11 ) )

It's in Customizer > Layout > Blog.

Never mind. I found it.

Glad you did!

This archived topic is closed to new replies.