[wp-hackers] Adding meta data to categories
jer-wphackers at simianuprising.com
Fri Jan 9 00:28:02 GMT 2009
Not sure if the previous response is what you were looking for. If I
read you right, you want to add arbitrary metadata to categories and
are looking for the best place because there is no term_meta table.
In that case, you might want to use the category_description field
along with either some sneaky regex or serialization. You might have
to create an alternate UI to enter the data, but you could tell your
script to just save the data into the description field, then load
that data and parse it when you want to actually use it.
The plugin FeedWordPress does something similar with Links, storing
various settings used to aggregate the links in the link description
field and parsing them as necessary.
If you're careful (and have smart users) you can even set up a
human-readable syntax so you can just go in and type the info in the
category description field directly. Actually, if you just formatted
it in the wp_parse_args() style (and have appropriate metadata that
would work with that format) then you could do it pretty quickly.
Jeremy Clarke | http://simianuprising.com
Code and Design | http://globalvoicesonline.org
More information about the wp-hackers