title: Adding custom image fields and other fields at the same time
body: <p>I basically want to have a custom CMS page that has pairs of images and labels for those images defined within it.  I intend to use these pairs of items for populating content on a custom page of my new WordPress theme.</p>
  
  <p>I have managed to make a new settings page within the CMS and populate any number of text boxes within it all thanks to <a href="https://web.archive.org/web/20130919144317/http://planetozh.com/blog/2009/05/handling-plugins-options-in-wordpress-28-with-register_setting/" rel="noreferrer"><strong>Handling Plugins Options in WordPress 2.8 with <code>register_setting()</code></strong></a>.</p>
  
  <p>I just now need to add fields for each text box that let a user open up the media browser and then select an existing image uploaded to WordPress or upload a new one for selection.</p>
  
  <p>I haven't been able to find any simple clean examples of this online.  Even the questions related to this on Stack Overflow I found don't seem to have a clear elegant example of this working.</p>
  
  <p>Just for the record; I initially planned to do this with a plugin (<a href="https://wordpress.org/plugins/developers-custom-fields/" rel="noreferrer">Developers Custom Fields</a>) which I already have installed, thinking it would be very easy with this plugin to add custom image fields because it is pretty simple adding text boxes with it. However I seem to be wrong and no clear examples exist for specifying this kind of field.</p>
  
  <p>If you know of any examples that illustrate adding custom image fields (irrelevant of adding other fields at the same time), either using native WordPress API code or integration with the Developers Custom Fields plugin.</p>