Post Pic

Display dates as “time ago”, the easy way

24 comments

Want to display human readable dates on your blog, such as “Posted 6 days ago?” There’s a lot of available functions to do so, but only a few people know that WordPress have its own built-in function to do that.

Post Pic

How to programatically remove WordPress dashboard widgets

11 comments

Added in version 2.7, the Dashboard Widget API allow you to ad widgets to your WordPress admin dashboard. In this recipe, I’ll show you how you can easily remove them programatically.

Post Pic

How to automatically create a custom field when a post is published

24 comments

Ever wanted to be able to automatically create a custom field with a value when a post (or page) is created? Then this snippet is for you.

Post Pic

WordPress hack: Display post thumbnail in your RSS feed

12 comments

Introduced in WordPress 2.9, get_the_post_thumbnail() allow you to display a thumbnail in your posts. But what about displaying post thumbnails in RSS feeds? Just read this recipe to know how to do.

Post Pic

WordPress hack: Remove admin name in comments class

4 comments

By default, when the blog admin left a comment on his blog, WordPress use the name in the comment css class. This is useful for styling, but it will also let people know about your admin login name. If you want to hide this info, read this recipe.

Post Pic

WordPress tip: Automatically empty Trash

13 comments

Trash is a new functionality from WordPress 2.9. When an item (post, comment, etc) is deleted, it goes in Trash instead of being permanently removed. Here is a tip to tell your WordPress blog to autmatically empty trash every X days.

Post Pic

WordPress hack: Insert comments programatically

7 comments

Some time ago, I’ve shown you how to insert posts programatically in WordPress database. So now, what about comments? In this recipe I’ll show you

Page 2 of 45«12345678»...Last »