0

I have created a custom post type called "Product" with 2 custom fields "Size" and "Color" , I would like the "Size" to be limited to "Small", "Medium" and "Large" , How to I create this list of pre specified values which show up in a Custom Meta box populating an option field ?

Praveen

1 Answer 1

0

The easiest solution will be using Advanced Custom Fields plugin, I guess.

You can easily add custom write panels with it and limit them only for some posts based on post type, template file, etc.

If you'd like to do implement it yourself, then you'll have to add your custom meta box using add_meta_box function.

2
  • Thanks Krzysiek , this was an interview question and was trying to figure out the best option.
    – Praveen
    Nov 14, 2013 at 9:31
  • :) No problem :) Nov 14, 2013 at 10:39

Your Answer

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

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