Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Hot Themes

    (@hotwptemplates)

    Hi,

    Unfortunately, this plugin currently allows you to pick only one folder and the subfolders are disregarded.

    Thanks,
    Milos

    Thread Starter yfchild

    (@yfchild)

    Hi thanks to answer, I′m not have problem with the folders, for that I found a soluce, no problem with that.

    But i need know if you can help me, give a tips for :

    Have better random image in same posts if i put 2/3 shortcodes to prevent see the same image from a post (avoid duplicate image).

    Although I have folders with 50 different images, if i put 2/3/4 shortcodes i see the same image 1/2 time. is it impossible to improve random function to avoid this?

    Thread Starter yfchild

    (@yfchild)

    Posible?

    Plugin Author Hot Themes

    (@hotwptemplates)

    Hello,

    It’s probably possible but requires a lot of coding. This plugin uses random() function. It randomly selects one image each time (out of 3, 10, 1000, etc.). So, if you have just 3 images in a folder, it’s quite possible it will display the same image twice (33% chance).

    Thanks,
    Milos

    Thread Starter yfchild

    (@yfchild)

    where the line to change that, i will try thanks

    Plugin Author Hot Themes

    (@hotwptemplates)

    Hello,

    Random function is used in this line (3 occurrences):

    $ind = rand(1,count($images)) ;

    in file hot_random_image.php

    Thanks,
    Milos

    Thread Starter yfchild

    (@yfchild)

    Thanks a lot I will try to modify it for new project.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Better random folder image’ is closed to new replies.