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.

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

1 Answer 1

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.