Support » Plugin: Randomize » Rotation Works, Random Doesn’t

  • mikebreeze


    I utilized this plugin to generate random text links. It works fine on the default rotation setting but not at all on the random setting. On your widget you state that when using large numbers of entries, that some will never show up in random mode. I’m using 9 (soon to be 12) text links and it only brings up the first row in the database.
    Could this be because the random function has a static number used as the maximum random value? I know PHP but am just learning WordPress hooks & functions. I will try and look at the underlying code when I get a chance. When I use the random function in a LAMP environment I make 2 database queries. One to get the row count of files, then I use that variable as the maximum value when I call the random function.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Sebastian Schwarz



    I have no idea, why some of your entries don’t displayed in random mode. On my site it does. Sometime more often, sometimes never – this is what random is.

    You have the freedom to optimize this function. I only maintain the veeeeery basics of Randomize, without programming. If you do, you can send me updated code, so that I can make an update:

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘Rotation Works, Random Doesn’t’ is closed to new replies.