Title: Upload through frontend
Last modified: August 22, 2016

---

# Upload through frontend

 *  [tahatyc](https://wordpress.org/support/users/tahatyc/)
 * (@tahatyc)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/upload-through-frontend/)
 * Hello I want to ask if there is chance to upload secondory featured image with
   this plugin through frontend. I am uploading default one now with set_post_thumbnail,
   but there is no parameter for the secondory featured image. Any idea ?
 * [https://wordpress.org/plugins/multiple-post-thumbnails/](https://wordpress.org/plugins/multiple-post-thumbnails/)

Viewing 1 replies (of 1 total)

 *  [RBX](https://wordpress.org/support/users/rbx/)
 * (@rbx)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/upload-through-frontend/#post-5762199)
 * I want this feature as well.
 * I think this code present in function set_thumbnail will be helpful, so I’ll 
   try implementing this, but it would be great if you provide a public function
   to do this.
 *     ```
       if ($thumbnail_id && get_post($thumbnail_id)) {
       	$thumbnail_html = wp_get_attachment_image($thumbnail_id, 'thumbnail');
       	if (!empty($thumbnail_html)) {
       		$this->set_meta($post_ID, $this->post_type, $this->id, $thumbnail_id);
       		die($this->post_thumbnail_html($thumbnail_id));
       	}
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Upload through frontend’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multiple-post-thumbnails_d94965.svg)
 * [Multiple Post Thumbnails](https://wordpress.org/plugins/multiple-post-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-post-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-post-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-post-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-post-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-post-thumbnails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [RBX](https://wordpress.org/support/users/rbx/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/upload-through-frontend/#post-5762199)
 * Status: not resolved