Currently not. You cannot set an array of n fields in you WP_Customize_Manager::add_control
method in the customize_register
action hook.
The class creating the controls is WP_Customize_Control
and does only accept the following types:
- checkbox
- radio
- select
- textarea
- dropdown-pages
- and per default any valid input type
You will need an options page to edit/create your gallery data with thickbox (media gallery) integration.
A posible workaround
Create your own class extending WP_Customize_Control
and overwrite the relevant methods. There create controls to handle the array of gallery images and thickbox integration. Finally follow the path of the Custom Theme API
and you are set to go.
Related Posts:
- Need help setting default setting value for radio button in theme customizer
- Is having multiple theme customizers for different pages possible?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- WordPress customizer: load controls in a custom div
- Dynamically change feature image in customiser
- One button to change all settings in theme customizer?
- Check if Favicon is set in Customizer
- WordPress Customizer: How can you have multiple active callbacks on one control?
- Design view breaking on Pages
- Dynamically loaded Theme components based on Customizer Settings values : changes not appearing in Customizer preview – (Workaround found)
- Customizer Show/Hide Logo and Site Title
- WordPress Customizer not setting default value upon initial install?
- How to add default images into theme customizer image control?
- Theme Customizer – Dynamic CSS PHP File
- Show different Customizer Settings on Page-Tamplates
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- Crop image from get_theme_mod Customizer field
- Get/Set wp.customize.previewer.previewUrl
- Customizer Show/Hide
- Difference between ‘type’ => ‘text’ and WP_Customize_Control
- How do I get current page ID in WordPress customizer file?
- Count top level menu items
- Getting array of customizer settings
- Change the CSS of the Customizer API
- Customizer – Prefix Class Extension
- From where the header-text can be changed in WordPress custom header?
- How to output widget
- Create a range slider to change font-size with different screens sizes in wordpress customizer api
- Customizer: active_callback and sanitize_callback incompatibility?
- Return a numerical function value in Customizer controls
- Customizer: Multiple CSS styles on same element in Live Preview
- Customizer: Category Select Sanitize
- Problem custom control Customizer
- Skt full width basic slideshow problem
- How to check if a Customizer setting is set?
- WordPress Customizer Default Image
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- Extending WP_Customize_Media_Control to return filename
- Please show me how to use an if/else statement in combination with wp_enqueue
- Customizer: How to change Header Image description
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- Use SCSSPHP to compile Theme Customizer Values into .SCSS files ready to compile to CSS
- Need advice on theme customizer and child themes
- Getting text from custom field from customizer
- OOP PHP class extends TwentyTwenty_Customize in Child Theme
- Grabing default from cuztomizer php file instead of other php script
- Illegal string offset in PHP function in via Theme Customizer
- Why would the child theme load in the Customize preview, but not on the site itself?
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- How can I edit a php custom page template to work in other themes?
- How to add locations input to user profile?
- Change CSS Variable value in Theme Customizer Live Preview
- Customizer textarea with script tag won’t work in live preview
- Allow user to choose header style
- Remove specific javascript when viewing page in Customizer?
- Customizer: How to Sanitize a Decimal Number Range
- How to update option field in database on clicking the publish button in customizer
- Make customizer panel or section button
- make an array in wordpress cusmization api?
- Multiple sections in Theme Customizer overwritten
- Use Custiomizer to setup meta theme color tag
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- Sort on two variables
- Using get_theme_mod with checkbox to display content
- customizer live preview layout picker
- Access preview settings in php
- Create Customization Controls from Array
- Replace content in WordPress Page after GET from php page
- How to add button to top of theme customizer?
- How can I clear the theme mod settings?
- Cant get theme to change footer color through theme customizer
- wp_head makes my custom page template not work in Customizer?
- Echo piece of code from file
- How to store the_post_thumbnail() value in a variable
- Sidebars panel in customizer
- Too few arguments to function woocommerce_update_product_acf_save_post()
- WordPress Query -> Ajax Query
- Can WordPress support Website (19GB database) Should I move Our WordPress Website to a custom one using Laravel or any other PHP framework?
- WordPress Importer Call to undefined function set_time_limit()
- Embed PHP script into WP – what is the best way
- Using global variables
- WordPress different custom tag being displayed in on tag list
- What is wrong with my sorting logic?
- Count the number of matching post names in foreach loop
- what to do after instlling cyberpanel on VPS
- Weird Javascript:void(0) code in my website
- PayPal button not showing and cannot retrieve order error in PayPal
- Why do I get a 404 error on my custom post type archive pagination?
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- change div text and link for logged in users
- Font Awesome Icons as squares [closed]
- index.php changed on its own
- Exclude a category ID from the following function
- How can I modify the html output of a custom post type admin page?
- How do I change the color of a pop-up on the main page?
- Add text below WooCommerce short description if metabox value is true
- ACF number less than comparison not working
- Deprecated: Return type of WC_Appointments_Availability::offsetExists($offset) [closed]