azam_net — 2012-09-04T08:15:39-04:00 — #1
In our blog the date of the blog posts appears at the top of each blog post, next to the title (see here). This puts pressure on us to continually keep the blog updated and people think that blog posts are 'old' even though the ones from a year ago are usually as relevant today as they were in 2011.
Just wish to call upon the Wordpress gurus out there: what do we need to edit to remove the date from the top and put it at the end of each blog post? Would be ideal if, even it was at the end, it wasn't so prominent.
Thanks very much.
pullo — 2012-09-04T08:45:22-04:00 — #2
Assuming you have access to your theme's files, there are two places you're going to have to look:
- index.php. This is responsible for displaying a list of blog posts on the front page of your site.
- single.php. This is responsible for displaying a single blog post.
Unfortunately, both of these files are likely to pull in a bunch of other files, depending on what is being displayed.
Taking the standard "Twenty Eleven" theme as an example, in index.php it uses the function get_template_part()to load whichever template file has been used in the post.
That means that it loads content.php, for posts using the standard template, content-gallery.php for posts using the gallery template, and so on ...
So, to change the way that the date is displayed on the front page of a site using this theme, you would have to alter all of these template files accordingly.
Inside the files, the date is displayed thus: <?php twentyeleven_posted_on(); ?>. I'm sure it'll be something similar or equally obvious in your theme.
Single.php is less work. It just pulls in the file content-single.php.
You would alter this in the same way.
I hope that is understandable.
system — 2012-09-04T15:54:05-04:00 — #3
Even if the node for Wordprsss post date need be preserved inteh page, you can make it invisible by CSS, like:
felgall — 2012-09-04T17:51:20-04:00 — #4
If you don't want dates on the entries then why not create pages rather than posts. When you create pages they will not have the date at the top.
The other thing that you can do with evergreen posts is to edit old posts and change their date.