Monthly Archive:: December 2016

Adding Custom Field to WordPress Post

In WordPress there some default fields in add new post form. These are title, HTML description, category, tags. If we want to add more information to our post, WordPress provides an option to enable custom fields. These additional information added with the custom fields are called as post meta. This meta data is stored in

Allow only numbers to be typed in a textbox HTML

Here we will see how to allow only numericĀ  or number to be types in any html textbox. This will be useful for phone number field, pincode or for only numeric authentication purpose. To achieve this you could subscribe for the onkeypress event: HTML TEXTBOX <input type="text" class="textfield" value="" id="phone_number" name="phone_number" onkeypress="return hasNumber(event)" /> Now