I am trying to create a custom field for a custom taxonomy. update_post_meta works great with posts. Taxonomies are not posts so this won’t work.
<?php update_post_meta($post_id, $meta_key, $meta_value, $prev_value); ?>
How would I save a custom field within a custom taxonomy? Other solutions include the options_table (bad!) or creating a custom table (cumbersome). Is there another, canned solution or function to help with this?
Correct me if I’m wrong, but isn’t what you’re looking for the wp_set_object_terms function?
First you need to add the fields you wish to attach to that taxonomy…
There are several solution but a gr8 member of wordpress.stackexchange.com
called @bainternet released the best solution i have seen yet for:
You should have a look:
wordpress taxonomies extra fields the easy way
it helped solved a recent project.
hope this answers your need…
Best of luck
sagive
great post on Adding Custom Fields to Taxonomy.
The solution outlined does require creating an additional database table but it does the job perfectly.