First off the reason I wanted to remove dates from my posts on one of my pages was that it was completely evergreen. Meaning it will work today, tomorrow or another 10 years from now. It is not going to change.

You do want to show your post dates if it is a time sensitive thing. For example if you are a sports blogger your dates would be important.

People are a little crazy even if they know things are always the same if they see a date from a few years ago they might just think it is no longer relevant and bounce right off of your page.

So to get that perfection and maybe help with decreasing those bounce rates you might want to get rid of those dates.



Join the Discussion
Write something…
Recent messages
jakobia Premium
If you do not want the dates from post, why not simple use pages instead then you make your website?
Reply
Marc1001 Premium
If i used only pages it would get very sloppy very quickly. I don't know how you can set up pages as a blog roll. Posts are much more versatile in my opinion.
Marc
Reply
KatieMac Premium
Thank you so much for this code freaks me out the second code worked for me however it removed all dates not sure if google will be disgruntled lol
Reply
Marc1001 Premium
It shouldn't affect google at all.
Reply
KatieMac Premium
Thank you
Reply
Marc1001 Premium
You are welcome.
Reply
judebanks Premium Plus
That code will remove the date entirely across the site on all posts, which, as you say, might not always be a good idea.

That date code can be theme specific, so it might not work in all themes.

Another option is to use a "Last Updated" date, which is my preference and what I do. Search engines will pick up the last updated date as the modified date, and it shows that the site is being updated.

See my screenshot. Just another possibility for anyone interested.
Reply
Marc1001 Premium
My understanding is that it is not theme specific but WordPress specific. But you need WP 3.0 or higher.
Marc
Reply
judebanks Premium Plus
WordPress does have its standard codes. But theme developers do their own thing. That's why in the WordPress forums they won't answer certain coding questions related to paid themes. They suggest you ask the theme developer.

The standard WP codes did not work for me. The code I got from the theme creator was totally different and it worked. ~Jude
Reply
Marc1001 Premium
Jude,
Thanks for letting me know. I was unsure of that. I actually have a paid theme on the site listed and I needed to use the second set of codes.
Mrac
Reply
jvranjes Premium
I had the same question as Lou, what after theme update. I do not use child theme.
Reply
judebanks Premium Plus
It is the advantage of using a child theme.

If that is the only change you make, it's not too time consuming to change it back with each update. But once you start making a few other changes to the theme function codes, it can be a hassle without a child theme.

Even though I have a child theme, I still had to get the code for what I wanted to do from the theme developer because the standard WP codes did not work in the theme.

~Jude
Reply
LH-CLUB Premium
I have used this type of code and it does work, till you get a theme update, then it`s gone, so you have to do it again.
Reply
judebanks Premium Plus
Not if you have it in a child theme, which is what I do. ~Jude
Reply
LH-CLUB Premium
True, I haven`t learned how to do one yet
Reply
judebanks Premium Plus
There are a few child theme creator plugins around that can make this process more simple.

~Jude
Reply
Marc1001 Premium
I ran across a post you did that happened to be the same site that I learned how to do this from.
I like Jude, use a child theme. That being said I normally dont play with code. I dont want to break things. So when I saw how easy this was I wanted to share it.
I have not had to put it on after an update of the Theme either.
Marc
Reply
Top