I would like to have the "Name" field in the Custom Fields section of of Wordpress backend to have a certain value by default.

For example, when the user starts a new post, I would like the Name of the custom field to be automatically set to "preferred_post_color" like so:


The key Name therefore serves as a prompt for the user to enter the value, say, "Red".


  • This is already answered very well here, please take a look and you should be good to go :) – Prasad Nevase Oct 12 '15 at 18:23
  • 1
    I would add my own meta box and eliminate the potential for user error. – Milo Oct 12 '15 at 18:25
  • @ItsMePN: Apart from having a million answers (which one is right for me?), that question is not really exactly the same as mine. – Ifedi Okonkwo Oct 12 '15 at 20:54
  • @Milo: Thank you for the suggestion. I'm actually taking a long look at that option. – Ifedi Okonkwo Oct 12 '15 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.