I'm new to wordpress and would like to know what's the best way of extending my custom plugin for our school page. I've created a custom post type experiment which will always have steps 1 to N. Sometimes an experiment might have 3 steps and sometimes 12 steps.

I've looked at custom fields and from the documentation the key-value storage would require always having the maximum number of fields and then checking if a key's value is empty when iterating through it inside the template.

What I'd like to do is to have ajaxed fields like there are for a normal post.

  • Why do they have to be stored individually? Store an array in a single field.
    – Milo
    Commented Jan 9, 2017 at 16:40

1 Answer 1


So I figured out that Wordpress works with arrays inside a custom post_meta by default.

  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
    – cjbj
    Commented Jan 10, 2017 at 11:09
  • @cjbj this is the author. :)
    – Rarst
    Commented Jan 10, 2017 at 11:54
  • @rarst didn't see that in the review window ;-)
    – cjbj
    Commented Jan 10, 2017 at 11:59

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.