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

  • SEARCH
  • Home
  • 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 9198055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:12:02+00:00 2026-06-17T22:12:02+00:00

I am now currently coding a plugin for the WordPress admin. It’s about custom

  • 0

I am now currently coding a plugin for the WordPress admin. It’s about custom meta boxes. I would like to create a slideshow plugin, just for learning a lot of coding.

I have created one metabox, that contains an image upload and a text input field. (see picture bellow)

Here is the metabox with the fields

So on, I can save the fields, so I can upload an image and set an capton to it inside the text field. When I save the post/page inside WordPress it will save the values for me in my database. That’s fine!

Now I would like to expand the code, through the user possibility to add and remove fields, like, repeatable field.
As you can see in the image above, I have created the add new slide button, I have also code some javascript for get it work, but this doesn’t work correctly.

So my question to you is, what’s the best way to create dynamically fields?
I am now using the clone function in javascript, to clone the fields, but only the default row will work.

I’ve been a few weeks with it and couldn’t find a solution so far.

Some code:
This is the code of my metabox created with PHP
This is the jQuery / Javascript that I’m using now

  • 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-17T22:12:03+00:00Added an answer on June 17, 2026 at 10:12 pm

    I’ve answered many Questions regarding this topic in WordPress StackExchange.
    It is called Repeatable Fields.

    But basically these are the needed resources:

    • Create more Meta Boxes as needed – WPSE Q&A

    • Repeatable Custom Fields in a Metabox – Gist

      /**
       * Repeatable Custom Fields in a Metabox
       * Author: Helen Hou-Sandi
       *
       * From a bespoke system, so currently not modular - will fix soon
       * Note that this particular metadata is saved as one multidimensional array (serialized)
       */
      
    • Repeatable Custom Fields in a Metabox – Another Gist example, no description given

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

Sidebar

Related Questions

I've been coding for a while now and would like to start looking into
Currently I'm trying to create some coding short cuts for our website. Right now
I am currently coding some chat program and now want to play music via
Right now, I'm currently serializing a class like this: class Session { String setting1;
I am very new at coding. Now I am going to tell you about
I've been coding in J2SE and now I'm currently working on a project that
I'm currently working on an Eclipse addon which would help me coding. Basically a
I'm currently coding an uploader script based on Uploadify. Right now I resize the
I am currently creating a application and would like to add a AJAX feature,
I'm a newbie on grails. I am now currently working on my scaffolding templates

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.