Blog Archives

“Human readable” date

Here’s a short code snippet you can use if you want your date to be displayed as “Today”, “Yesterday” or “X days ago”. To accomplish this, simply add a filter to the_date. In my example it shows “X days ago”

Tagged with: , ,
Posted in Beginner

How to make WordPress print the date every time

If you are using the template function the_date or get_the_date while listing posts you might notice that the date doesn’t get printed every time. This is because the previous day is stored so that it doesn’t print the date stamp

Tagged with: , ,
Posted in Beginner

WordPress Quick Tips is a blog supplying great tips about WordPress.

We hope to create a great knowledge resource for WordPress developers as well as serving a reminder for all the forgetful ones.

The blog is created and run by Vincent of Oakwood Creative

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 121 other subscribers