Tag Archives: custom field


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.

Shortcode: Get a custom field value through shortcode

Add following snippet to “functions.php” Usage Snippet

Snippet: Add Custom User Profile Fields

Although wordpress user profile has pretty much every thing inside it. But in case if you want to add your own field to user profile pages.