WordPress.org

Ready to get started?Download WordPress

Forums

Set custom fields based on category, is there a plugin/option to do this? (2 posts)

  1. VitaeBlog
    Member
    Posted 5 years ago #

    Hi all,

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

  2. MichaelH
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic