WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is probably a silly question, but I'm new to wordpress development so easily confused at the moment. Code:

array(
'label' => 'Repeatable',
'desc' => 'A description for the field.',
'id' => $prefix.'repeatable',
'type' => 'repeatable'
)

My Q: Is 'repeatable' a standard feature of wordpress, or is it something the developer has created? (have picked this code off the internet to learn).

Thank-you!

share|improve this question
up vote 2 down vote accepted

WordPress has no real form API, you have to create almost all form elements from scratch.

'type' => 'repeatable' is part of an external library.

Google lead me to this article: Reusable Custom Meta Boxes Part 3: Extra Fields – maybe a starting point for your research?

share|improve this answer
    
Thank-you for answering my question! – mattnewbie Apr 18 '13 at 15:52

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.