Snippets Archive

Codes that are meant to be useful for others. Commercial use of my code strictly prohibited.

Changing the Default Enter title here Text

Whenever you want to write a new blog post from WordPress, did you ever see the text "Enter title here" in gray color on the post title input field? I am joking, I know you have seen it many times ...

Adding Post Format Support for a Theme

Since WordPress 3.1, users are able to take advantage of a new function that allows users to assign some specific post format for their posts ...

Displaying List of Users in WordPress

On my last tutorial, I have shown how to retrieve the total user count in WordPress. Today in this tutorial, I will show you how to create a list of users in WordPress ...

Displaying the Total User Count

If you have an WordPress based site that allows users or authors to register and perform certain tasks, you may be interested to display the total users count on your site ...

Displaying Author's CPT Count on Users Page

By default, WordPress would display the Posts count of any user from the "Users" admin panel. Now, what about the Custom Post Type? In one of my previous post, I already explained how to register a custom post type in WordPress ...

Displaying Twitter Followers Count in Plain Text

Over the last couple of days, I was keep thinking of adding metro style social box on the sidebar of my site and show the counters like Facebook Like count, Twitter followers count stuff like that ...

Displaying Number of Queries and Page load Time

WordPress has some amazing built-in functionality. One such functionality is to be able to display the number of database queries made, along with displaying the number of seconds it took while loading any give page ...

Registering Custom Taxonomy for Pages

Registering custom taxonomy can help site admins to organize their contents. Usage of post categories and tags are one such feature that we already know about ...