'Repeatable' sets of fields using add_meta_box? (3 posts)

  1. 3stripe
    Posted 4 years ago #

    Wow... I've not started my own thread on here for years.... anyhow...

    I would like to create a repeatable metabox for 'Related links', with 2 fields for the url and url description. Easy enough to create a single instance of this....

    But how do I make it repeatable? (without using a plugin... I don't want to rely on something which stops being updated at some point ;)



  2. 3stripe
    Posted 4 years ago #

    I've managed to create a fixed number of related link panels... a bit hacky but it works... I guess you would need to use javascript to do this properly and with an option to repeat the link panels instead of hard coding them all!

    [Code moderated as per the Forum Rules. Please use the pastebin]

  3. theshae
    Posted 4 years ago #

    You should check out the advanced custom fields plugin its free but the repeater is a $25 add on (well worth it)

Topic Closed

This topic has been closed to new replies.

About this Topic