• 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 Marcel

    (@marceljm)

    Hi, @yfchild.

    A folder? Where is that located? Could you send me a screenshot?

    Thread Starter yfchild

    (@yfchild)

    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 Marcel

    (@marceljm)

    Hi, @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.