Adding of Custom Fields in WordPress Category

I have created a class that you can use so that you can easily add custom fields to WordPress category. To use it, follow the simple steps below:

Step 1: Download the class and copy it on your plugin or theme folder. Download Now!

Do not forget to include it the file using include_once or require_once.

Step 2: Edit the file. Go to the function extra_category_fields and add your extra fields. Simply follow the pattern of the first field.

Step 3: On your main php file, simple call the class.

new CustomCategoryFields('grp1');

Where ‘grp1’ is the prefix of all your custom fields. You can change it.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInPrint this pageEmail this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *