You can do this by adding the following class in your theme for admin options;
Custom-Metaboxes-and-Fields-for-WordPress
And you can call your repeatable fields with some thing like this;
array(
'name' => 'Name of field',
'id' => 'prefix_option_name',
'type' => 'text',
'default' => '',
'repeatable' => true,
),
For more details on how to use this class you can go through following documentation and example code.
Related Posts:
- Using the theme options to change background
- WordPress API Menu/Submenu Order
- What are the advantages and disadvantages of Option Tree over the Customization API?
- How do I add settings to the Background Options Page?
- How to add a checkbox element to attachments editor with example
- How To Add New Option Types To Option Tree?
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- What WP folder can I use to write files to?
- WordPress Settings API error
- Add a dropdown to theme customizer
- Understanding wp_add_inline_style
- Add a new checkbox in theme options
- How to add Color Picker in Theme Options for the following?
- Setting multiple default background images?
- Best practice way to implement custom sections into a WordPress theme
- Best practice (forward compatibility) for theme options
- How to set the default value of a option in a theme?
- Where is default wp_head() implemented?
- Add a preview to a WordPress Control Panel
- WordPress settings API error when checkbox unchecked
- How to deploy a new theme/theme options from staging to production site
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- What is the best way to export and import theme options?
- esc_url not working within add_settings_field callback
- Change loop order via form or link (jquery, not URL)
- How to remove menus section from WordPress theme customizer
- WordPress Errors in generated by theme check plugin [closed]
- WordPress Theme customisation CSS
- Why is unfiltered html allowed in custom fields for author / contributor roles?
- Select front page and blog page in custom theme settings page
- Cannot update WordPress General Settings Site Title and Tagline
- Theme Options page not showing up in admin menu
- How to hook CSS file according to theme selection in the customizer section
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Change setting name in Customizer and keep the data
- Is there a way to activate different theme for specified users? [closed]
- wp_editor() usage in custom meta box
- after_setup_theme, Global Variable and Theme Customizer
- Is there an action for save_menu and/or update_menu?
- For best DB performance should I serialize all theme options together or by type?
- Set multiple templates per post
- Creating Theme Options Page
- Location of theme options page menu icon
- Custom Field returning Numerical Value for Image rather than URL
- WordPress add options to theme not displaying
- qTranslate with my own theme and settings
- Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]
- Custom post fields
- Access theme options in templates
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Can I have two different theme for two different language?
- Using an if statement in the theme customizer page
- How to add “Template” option in page attributes panel?
- How would you accomplish the following advanced settings page?
- How do I Add images uploaded in the post to a default custom field
- Single Page Design, Storing in Theme Options
- Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox
- How do you replace content generated by custom fields with custom blocks in Block Editor?
- How can I make my options in an array and store theme in WP options one DB row?
- Sort wp_query by sum of two meta fields
- How to show custom meta_key in each li of menu
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- What’s the best practice way of handling custom fields in different post formats?
- Following Web Performance Optimization techniques to output static and dynamic css
- Custom page template with custom fields
- How to disable wordpress from overload my stylesheet styles with customizer styles
- How to enqueue javascript for WP Customize options sidebar?
- How do i place same widgets multiple time by default on theme activation?
- Is it possible to save more than one image to an option?
- correct tags for validating input types
- Common single page template options
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?
- Efficiency of wp_options vs a new table
- How to support letting users add their OWN logo to a custom theme?
- Change WordPress header color using customizer
- Where WordPress Stores The Custom Fields Values
- How do I use a color from theme options?
- How can I change the theme of different posts using a plugin?
- How to Create custom xml file for demo content for custom theme?
- How to make javascript work on theme options page
- get_template_part() doesn’t work
- Consequences if using PHP include TEMPLATEPATH?
- WP_editor doesnt apply wpautop on single line content
- Copying the theme style files and images to duplicate the website but with a difference
- Check if( selected() )
- Alignment Problem [closed]
- not getting API setting saved confirmation message after update on option page
- What is the best way to build home pages with a lot of sections for distributable themes [closed]
- How do I merge 2 WordPress Themes?
- WP Customazation API doesn’t save the default Value
- How to add post meta fields to an article’s as meta elements
- using Options Framework – can “theme-textdomain” domain be changed?
- How add built-in textarea in theme development?
- How to get DB options format without saving? [closed]
- Injecting pre-defined text from custom page template to editor
- Sample Theme Options page for Multisite – what to consider
- Get attachment meta (I need attachment ID, unsure how to find it)
- Customize Option Framework