Unable to add custom fields in custom taxonomy meta box in wordpress-3.5.2.
I have checked solution in various blogs but Unable to solved this problem. I am using wordpress-3.5.2
What I am trying is :-
// A callback function to add a custom field to our "adtag" taxonomy
add_action( 'adtag_edit_form_fields', 'adtag_callback_function', 10, 2);
// A callback function to save our extra taxonomy field(s)
add_action( 'edited_adtag', 'save_taxonomy_custom_fields', 10, 2 );
I have tried solution from below link:-
http://www.codehooligans.com/2010/07/07/custom-meta-for-new-taxonomies-in-wordpress-3-0/ http://sabramedia.com/blog/how-to-add-custom-fields-to-custom-taxonomies
http://shibashake.com/wordpress-theme/add-term-or-taxonomy-meta-data
To add a custom field to your custom taxonomy, add the following code to your theme's functions.php:
Next, we'll create a callback function that we'll use to save our custom fields. Add the following code to your theme's functions.php:
The code above will work "as is" for one or more custom taxonomies, no changes needed.
now let's associate these callback functions to the "edit" screen for our custom taxonomies. To do that, we'll use two of the WordPress action hooks that are available for each custom taxonomy that we create. Add the following code to your theme's functions.php:
To access a custom field added to your custom taxonomy add the following code inside your custom taxonomy template (example, taxonomy-presenters.php), within the PHP block at the top:
For this example to work, be sure that you have saved a value in the custom field for the term you are working with.
I was able to follow the directions on http://sabramedia.com/blog/how-to-add-custom-fields-to-custom-taxonomies to create custom fields within a custom taxonomy.
It looks like you are not including the steps after adding the action. Make sure you are working in the functions.php file and that you include the html markup for how the custom field should appear. That is, this section from the SabraMedia instructions:
Take a look at the Tax-meta-class developed to add extra fields to taxonomies: WordPress Taxonomies Extra Fields the easy way
1) Include the main class file
2) Configure taxonomy custom fields
3) Initiate your taxonomy custom fields
4) Add fields
5) Finish Taxonomy Extra fields Deceleration [important!]
6) Getting Saved data