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?
- When to use is_home() vs is_front_page()?
- How do I add settings to the Background Options Page?
- WordPress Settings API error
- Add a new checkbox in theme options
- What is the best way to export and import theme options?
- Changing the entire control choices using wp.customize with JavaScript
- “Display Site Title and Tagline” checkbox not working?
- WordPress how to override function adjacent_posts_rel_link_wp_head() in link-template.php the correct way
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- Best approach to create sites with Modular Content? [closed]
- What’s the best action to use when you want to do something only once per theme setup?
- Creating multiple hooks for theme
- Customizer: widget-synced triggers twice
- Get a setting value conditionally in the Customizer api
- WP_Customize_Color_Control omitting # symbol
- How to create a custom template to admin dashboard
- How would you accomplish the following advanced settings page?
- How do I Add images uploaded in the post to a default custom field
- How to add a button which saves the post then executes a function
- Dynamically generated wordpress customizer options?
- Override customizer values on a per-menu base
- Using My Own Classes On Wp Unit Tests
- 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?
- Integrate WooCommerce theme with a WordPress theme [closed]
- How do you use WordPress for a website that’s not in a blog format?
- Replace site title with logo when logo is uploaded in customizer using
- Check if( selected() )
- Theme logo metadata into template file
- How to call a widget in a loop at a specific iteration value?
- How to get DB options format without saving? [closed]
- How to add custom page elements to the WYSIWYG editor?
- Twenty Twelve Author not displaying
- Sample Theme Options page for Multisite – what to consider
- My contact form – I’ve changed the source code but the changes are not being applied
- Default customizer colors aren’t displayed outside of the preview
- Theme does not allow shortcodes
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- What is an alternative to not using child theme to customize a WordPress theme?
- What is the best practice workflow for new website overhaul and keeping current SEO ranking? [closed]
- Create settings field on button click
- Add a customize control depending wich radio setting is checked
- Missing hashtag with theme customizer header color
- Create new sidebars trough admin post/page metabox
- How to prevent XSS attack in wordpress theme?
- Theme Options Doesn’t Work On WP Multisite
- WordPress two sidebar layout or theme
- How to add button to top of theme customizer?
- How do I make it super customisable?
- Theme.json: creating different sections of the color palette
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?