Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter jaydeesigns

    (@jaydeesigns)

    Ok I don’t know if this would be the better way but I solved my problem.
    I needed to fetch a random image within a specific album.
    Here is what I’ve done:

    1. Created a new instance called album_number and added it to the update and widget functions.
    2. Created a new input field with number value, called album_number.
    3. Replaced $selected_album = $data[array_rand($data)]; with $data[$album_number];
    4. That’s it, I am now able to select my specific album, the only thing is I am having trouble identifying my albums, I suppose they are stored in order of creation, So I had to guess mine was album number 3.

      I hope this helps anyone looking to do anything similar.
      Cheers,
      Jay!

    jaydeesigns

    (@jaydeesigns)

    Cheers, Kuda! that’s helpful

    jaydeesigns

    (@jaydeesigns)

    Yes, please! I too would like this to be implemented. This is a nice plugin and it would be a great improvement. Thanks!

Viewing 3 replies - 16 through 18 (of 18 total)