Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9130533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:58:53+00:00 2026-06-17T07:58:53+00:00

Having followed this tutorial, I have successfully created a repeatable type custom field. However,

  • 0

Having followed this tutorial, I have successfully created a repeatable type custom field. However, I would like to take it to the next stage and have more complex and advanced repeatable fields.

My metabox array is defined like so:

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

And it is displayed using the following code:

    case 'repeatable':
        echo '
            <a class="repeatable-add button" href="#">+</a>
            <ul id="'.$field['id'].'-repeatable" class="custom_repeatable">';
            $i = 0;
            if ($meta) {
                foreach($meta as $row) {
                    echo '
                        <li><span class="sort hndle">|||</span>
                        <input type="text" name="'.$field['id'].'['.$i.']" id="'.$field['id'].'" value="'.$row.'" size="30" />
                        <a class="repeatable-remove button" href="#">-</a></li>';
                        $i++;
                }
            } else {
                echo '
                    <li><span class="sort hndle">|||</span>
                    <input type="text" name="'.$field['id'].'['.$i.']" id="'.$field['id'].'" value="" size="30" />
                    <a class="repeatable-remove button" href="#">-</a></li>';
            }
        echo '</ul>
            <span class="description">'.$field['desc'].'</span>';
break;

The first thing I’d like to do is add as second input field, thus saving two independent values.

However, I’m not particular sure on where to start.

Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:58:53+00:00Added an answer on June 17, 2026 at 7:58 am

    you can use the latest version of the code for that tutorial.

    It is in github:
    https://github.com/tammyhart/Reusable-Custom-WordPress-Meta-Boxes

    And it’s been updated this week and now repeteables can have multiple fields(text, images, etc…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having followed a tutorial online, I have a sessions controller that looks like: class
I followed this tutorial for installing sfml 2.0 and I am having issues compiling,
i followed this excellent as3 preloader tutorial, and below is the code i have
Hello I have tried this many different ways and have followed the tutorial at
I am having troubles reading XML, I followed this tutorial , and generated the
I have followed this tutorial to use SQLite db in my android app. Since
I have followed this tutorial: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 fully, and after seing that I had issues
I have followed this really good tutorial here http://www.appliness.com/getting-started-with-html-mobile-application-development-using-jquery-mobile-requirejs-and-backbonejs/#codesyntax_9 Which is a starter point
Having followed a tutorial I have a hashtable that contains a TcpClient object that
I have followed the following documentation and I am having problems. I access the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.