Title: Can assign feature image from a folder?
Last modified: February 14, 2021

---

# Can assign feature image from a folder?

 *  [yfchild](https://wordpress.org/support/users/yfchild/)
 * (@yfchild)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-assign-feature-image-from-a-folder-2/)
 * Can assign feature image from a folder instead url and have random image if this
   folder have xxx images?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-assign-feature-image-from-a-folder-2/#post-14049754)
 * Hi, [@yfchild](https://wordpress.org/support/users/yfchild/).
 * A folder? Where is that located? Could you send me a screenshot?
 *  Thread Starter [yfchild](https://wordpress.org/support/users/yfchild/)
 * (@yfchild)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-assign-feature-image-from-a-folder-2/#post-14052133)
 * Hi/Salut Marcel
 * Capture is not necessary. A new option with this plugin would be to have the 
   possibility to read the image from a folder (wp-content/upload/myfolder) that
   contains multiple images and function loads one of them and puts it as featured
   image and in the media library. Once an image is chosen, if its name exists, 
   it can never be duplicated.
 * For example I have a folder with 200 images, the function loads an image when
   saving the new post, and assigns it a random image.
 * Will be very great this option.
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-assign-feature-image-from-a-folder-2/#post-14052409)
 * Hi, [@yfchild](https://wordpress.org/support/users/yfchild/).
 * >  A new option with this plugin would be to have the possibility to read the
   > image from a folder (wp-content/upload/myfolder) that contains multiple images
 * Normally images in the upload image are public. So they have an URL and you could
   use it into the FIFU field. But FIFU won’t choose the image, of course.
    You 
   could use the function `fifu_dev_set_image($post_id, $image_url)` with a code
   to read the folder and randomize the image chosen. Done.
 * For now it can’t be native because it’s a very uncommon thing. Never someone 
   requested that before. So I only can implement the most common requests.
 * > them and puts it as featured image and in the media library
 * There is already a feature for that. Take a look at FIFU Settings > Featured 
   image > Save in the media library.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can assign feature image from a folder?’ is closed to new replies.

 * ![](https://ps.w.org/featured-image-from-url/assets/icon-256x256.png?rev=2776609)
 * [Featured Image from URL (FIFU)](https://wordpress.org/plugins/featured-image-from-url/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-image-from-url/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-image-from-url/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-image-from-url/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-image-from-url/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-image-from-url/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [fifu.app](https://wordpress.org/support/users/marceljm/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/can-assign-feature-image-from-a-folder-2/#post-14052409)
 * Status: not resolved