It's possible to create custom post types and custom fields but, is it possible to create custom field collections?

That is, groups of different fields as an entity (a dropdown, two images and a textfield)?


In Drupal there's something like this: https://drupal.org/project/field_collection

Screenshot: http://www.commonplaces.com/sites/commonplaces.com/files/images/blog/example-field-collection.png

And I was wondering what's the closest thing in WP.

  • Looks like a couple of meta boxes to me. What makes a set of fields a "collection"?
    – s_ha_dum
    Commented Nov 18, 2013 at 15:13
  • Those meta boxes could be a variable amount of images or any other kind of field. Hence why is not just meta boxes. At least that's what I think.
    – ozke
    Commented Nov 18, 2013 at 15:46
  • ummm... meta boxes can be (and basically are) "images or any other kind of field".
    – s_ha_dum
    Commented Nov 18, 2013 at 15:48
  • But don't you have to predefine how many of them you have?
    – ozke
    Commented Nov 18, 2013 at 15:50

1 Answer 1


The closest Thing in WordPress would be a custom meta box with repeatable fields. So to do that you would need create a a metabox using add_meta_box and if you look at this link you will also see an example of saving the custom fields in your meta box.

here is an example on a related question or if you want a much better option is to use a ready made class which will let you do just that with a few OOP settings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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