Question

I haven't been working with WP for a while and noticed that there are some new features in WP 3+ such as creating meta data for taxonomies. I'd like to be able to add unique meta data setups for different categories on my posts - what would be the best approach for this? Take for example the following categories:

"press releases"
"cases"
"concepts"

In the first, I'd like the admin to be able to attach more than just 1 image (the default thumbnail). In the other two I need the option of an additional textbox.

Is this easier to do with custom post types? I'd rather work with the regular post categories.

Thanks,
-Staffan

Was it helpful?

Solution

WordPress doen't have a term/texonomy meta table in its database so in order to save the meta data you will need to either create your own table hold the data, use the Options table to hold the data or use a plugin that creates that table for you like Simple Term Meta.

some tutorials

Hope this helps.

OTHER TIPS

You can try my plugin, KC Settings which supports creating settings page for theme, plugins, post metadata (custom fields) and terms metadata. There are a few sample files inside the plugin directory and a short guide on how to use them. Feedback would be awesome :)

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top