You have to add more than one setting. Change
$wp_customize->add_setting( 'img-upload' );
to two unique settings. i.e. img-upload-1, img-upload-2. Then call the settings in your code.
Related Posts:
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- Add a dropdown to theme customizer
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- How to remove menus section from WordPress theme customizer
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Modify the Additional CSS section (adding a disclaimer)
- 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
- after_setup_theme, Global Variable and Theme Customizer
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Using an if statement in the theme customizer page
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- JavaScript stops working on selectively refreshed sections one inside the other
- “Add A Widget” button in the Customizer
- Customizer: save setting/control content to post/page
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- How to disable wordpress from overload my stylesheet styles with customizer styles
- How to enqueue javascript for WP Customize options sidebar?
- Is it possible to visually group items on the theme customizer?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Change WordPress header color using customizer
- Default Text not showing from customizer
- How to transfer one domain to another domain without losing theme options (customizer)?
- Is there a WordPress boolean for “theme_customizer_active()”?
- Alignment Problem [closed]
- Customizer: get_preview_url() inside customize_save_after hook
- WP Customazation API doesn’t save the default Value
- add shortcode support in customizer
- Customize Option Framework
- Update Specific Key Value in Complex `wp_options` object
- Related Post Category Filter
- In wordpress customizer div still showing even if I hid it with javascript
- Customizer API Multi Sections in single Panel
- What is difference between add_theme_support and Theme Customization API?
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- How to customize the colors within a stylesheet using a WordPress setting
- WordPress Customizer Help with FontAwesome Icon
- Customizer_register theme options not saving
- Undefined index: custom_sidebars
- Using Customizer value in an external PHP file inside a theme
- Customizer API way function is_customize_preview() works only in main page?
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Theme Option’s Save Button is not working
- Turning WordPress Into full-featured website?
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- WordPress 6.4.2 – can’t load editor style css using ‘after_setup_theme’ or ‘admin_init’ actions
- When to use is_home() vs is_front_page()?
- How To extend WP_Customize_Control
- How do I remove a pre-existing customizer setting?
- Using classes instead of global functions in functions.php
- WordPress API Menu/Submenu Order
- Theme customizer – settings order
- Custom Image section in Customizer
- Get entered value of customiser field for live preview
- 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 remove the Theme Customization Button from the dashboard and themes options page?
- How To Add New Option Types To Option Tree?
- What WP folder can I use to write files to?
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- Change admin bar to default:off
- WordPress Settings API error
- Understanding wp_add_inline_style
- Add a new checkbox in theme options
- Theme Customizer : how to create multiple-level panel
- Allow Shortcode in Theme Customizer
- Theme Customizer – Nested Sections?
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- How to add Color Picker in Theme Options for the following?
- Customizer Active Callback not working
- Setting multiple default background images?
- Template for individual post designs
- Can I create customizer setting that can handle plugin shortcode?
- Best practice way to implement custom sections into a WordPress theme
- Editing the custom background CSS
- How to execute conditional script when on new customize.php (Theme Customize) screen
- When to use esc_url, esc_html, esc_attr, and friends?
- Is the theme customizer slowing down my site?
- Trigger Customizer saving process with Javascript only
- Adding customizer styles with wp_add_inline_style
- Best practice (forward compatibility) for theme options
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- How to disable 3.1 “Admin Bar” via script for the admin user?
- How to set the default value of a option in a theme?
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- Where is default wp_head() implemented?
- Add a preview to a WordPress Control Panel
- Can You Export Theme Settings From WordPress Multisite?
- WordPress settings API error when checkbox unchecked
- How to deploy a new theme/theme options from staging to production site
- WordPress Customize — Move “menus” options / field to another section
- Can we add more than one control under a setting in WP theme customizer?
- Widgets panel not displaying in the Theme Customizer
- What is the best way to export and import theme options?
- Front End Post Submit Form