Set custom fields based on category, is there a plugin/option to do this?
I would like to know if it’s possible to set custom fields by the category in wordpress.
For example lets say I have custom field ‘field’ and categories ‘a’ and ‘b’.
If I make a post to category ‘a’ the custom field ‘field’ will be set to “aa” and if I post to category ‘b’ the custom field ‘field’ will be set to “bb”.
Is this at all supported? If not does a plugin for it exist? If not can someone point me in the right direction so that I might write such a plugin? (I’m really new to PHP but am a decently experienced programmer).
- The topic ‘Set custom fields based on category, is there a plugin/option to do this?’ is closed to new replies.