Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 3 down vote accepted

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.

share|improve this answer
    
Thank you, will look into it. Tried a plugin called "Category Meta" which supposedly does the same thing but it doesn't seem to be working with the latest release of WP (or it might be because my installation is in another language than English). –  Staffan Estberg Feb 22 '11 at 10:09
    
I can't really tell about that plugin as i haven't used it before. –  Bainternet Feb 22 '11 at 11:32
    
I ended up using the "Verve Meta Boxes" plugin. While the meta can't be specified to a specific category it does apply to both pages and posts, and the plugin's very easy to manage. –  Staffan Estberg Feb 22 '11 at 12:25
    
But using Verve meta boxes misses the whole point of adding extra fields to categories or taxonomies. –  Bainternet Feb 22 '11 at 12:46
    
Yes, but I needed to have this done fast. Had to find another solution. –  Staffan Estberg Feb 22 '11 at 13:03

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 :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.