Post Pic

WordPress hack: Get popular posts by comments count

16 comments

In blogging, it is useful to be able to display your most popular posts. There’s WordPress plugins to do that, but you don’t need it: This code will display your most popular posts, accordoing to the comments count, without requiring you to use a plugin.

Post Pic

WordPress tip: Quickly secure plugin files

15 comments

Many plugins are made of only *.php files and most of the time they do allow direct access. Depending on what’s in your files that might be a potential security hole. Today’s tip will show you how to prevent direct access to plugin files.

Post Pic

WordPress tip: Insert custom content after each post

16 comments

For some reason, you may want to be able to automatically display a custom text below each of your posts. You can hard-code it, but it will be way better to do so using a WordPress hook. Here’s how to do.

Post Pic

How to display Twitter-like “time ago” on your WordPress blog

14 comments

Twitter have a really cool built-in function that display time from now, like “3 days ago” or “more than a month ago”. Doing so with WordPress is not hard using some PHP. Here is a function to do so.

Post Pic

WordPress tip: Allow contributors to upload files

9 comments

If you have contributors to your blog, you probably got annoyed to see that they can’t upload files and images while writing guest posts for you. Today’s recipe will solve the problem, allowing contributors to upload files to your blog.

Post Pic

How to display an incrementing number next to each published post

9 comments

Ever wished to be able to automatically number your posts (Like Article 1, Article 2, and so on) like sites such as A List Apart are doing? If yes, just read this recipe which will show you how to do it easily.

Post Pic

Automatically replace content in PRE tags by HTML Entities

5 comments

If like me, you often display some code on your blog, there’s a strong chance that you’ll enjoy today’s recipe: This handy piece of code will automatically replace all content within <pre> and </pre> tags by html entities.

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