Title: [Plugin: Posts 2 Posts] Add Image Upload to connection fields?
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Add Image Upload to connection fields?

 *  [Twansparant](https://wordpress.org/support/users/twansparant/)
 * (@twansparant)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-add-image-upload-to-connection-fields/)
 * Hi scribu,
 * I’m wundering if it’s possible to add an image select dropdown or even better,
   an image upload function to the additional connection fields?
 * My goal is to connect multiple posts from post type A to post type B, but to 
   be able to select the post image (or featured image) per connection.
 * I tried populating the dropdown field with all the attached images from post-
   1, but that didn’t work:
 *     ```
       global $participant_connection;
       $images =& get_children('post_type=attachment&post_mime_type=image');
           $participant_connection = p2p_register_connection_type( array(
               'from' => 'event',
       		'to' => 'participant',
       		'fields' => array(
       			'image' => array(
       				'title' => 'Image',
       				'values' => $images
       			)
       		)
           ) );
       ```
   
 * Any ideas on this? Or are you perhaps planning to add this function in a nearby
   update? Any help is appreciated 🙂
 * Thank you!

Viewing 1 replies (of 1 total)

 *  [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-add-image-upload-to-connection-fields/#post-2349448)
 * It’s possible, but it’s one of the most irksome things to implement in WordPress.
 * Patches welcome.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] Add Image Upload to connection fields?’ is closed
to new replies.

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [posts-2-posts](https://wordpress.org/support/topic-tag/posts-2-posts/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * 1 reply
 * 2 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-add-image-upload-to-connection-fields/#post-2349448)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
