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 have a custom page type set up called 'Products' and I need each of these post to automatically have multiple custom fields to set up a table of features/prices for the individual product pages.

Is there any way this can be done? Thanks.

share|improve this question
    
Sure it's possible. Are you just wanting "placeholder" custom fields, i.e. with blank values? –  MikeSchinkel Feb 3 '11 at 20:09
    
I think he means custom meta boxes? –  Bainternet Feb 3 '11 at 20:25
    
Jared check out the "More Fields" plugin: wordpress.org/extend/plugins/more-fields ... it basically extends the existing custom field functionality into something a little more useful(give it a shot).. –  t31os Feb 4 '11 at 0:03
add comment

2 Answers

up vote 1 down vote accepted

Hi @Jared

I too had a question about this. Luckily, Chris_O answered it for me. You may also want to check out this question, too.

Here's an example of what I've done with meta boxes and you can see it's quite easy.

Example Post Type

share|improve this answer
add comment

Using custom fields on custom post types is a pretty common task. What you essentialy need to do is adding a metabox and saving the values to the database. There already are some pretty good explanations of how to achieve what you want to do.

You should check out the official documentation of add_meta_box(), there's a fully working example in there!

― André

share|improve this answer
add comment

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.