Latest Snippets


Snippet: Phone and Fax Number Validation in Contact Form 7

Contact Form 7 is the most simple and straight forward form plugin for WordPress. It has been downloaded nearly 10 million times. It has everything to set up a simple contact form except one thing, that is, validation of a phone or fax number. This short snippet validates phone number by stripping of all non-numeric characters and checking if numeric string is of length 10 digits.

Admin Widget of to Display Future Posts

Widget: Display Future or Upcoming Posts

This widget allows you to display scheduled posts or custom post type. You can limit number of posts to display and toggle to display thumbnail, link to the post and change the order of the posts.


Snippet: Track Views of Posts, Pages or Custom Post Types without Plugin

This snippet automatically track views of posts, pages and custom post types. You can use get_post_views function having optional $post_id parameter to fetch the number of views of any post, page or custom post type. You can also add “Views” column in admin panel for each post type.

advance post listing widget featured image

Widget: All in one Advanced Post Listing Widget

This all in one post listing widget has all the options you can think list your posts or custom post types in sidebar. Either you are planing to show popular or recent or random posts, this widget can fulfil your desire. You can toggle the display of post title, post content, post thumbnail, number of posts and post author line. You can even limit the post content by number of characters and selection of posts from all categories or some of the selected categories.

PayPal Buttons, Pay Now, Buy Now, Donate

WordPress Shortcode for Paypal Pay, Buy, Donation and Cart Buttons

This plugin adds “paypal_button” shortcode to display pay now, buy now, donation and add to cart PayPal buttons with facility to customize they paypal checkout page. After installation you would need to set your PayPal E-Mail address, Business Name (for donations) in “Settings->PayPal Buttons”. You can also set you companies logo in PayPal’s checkout page . 


Shortcode: Display Most Popular or Commented Posts

Putting some of your older posts in sidebar or on a homepage is a good approach not only for SEO of your blog but also offer interested content to your visitor. You may have hundreds of posts on your blog, you should be showing the ones that has been most popular among the visitors. This shortcode will let you list most commented posts (or any custom post type) from a single category or multiple categories.

Post Editor Third Button Bar

Snippet: Enhance Post Editor by Adding Font Family, Size and Styling Row

In this tutorial, we will show you a trick to create a new row in post editor giving you ability to change text font family, size, style, converting text to superscript or subscript and adding a horizontal rule. It is pretty simple and straight.