BuddyDev

Search

Random picture

  • Participant
    Level: Enlightened
    Posts: 43
    Oscar on #16231

    Need some help from you guys, is there a way to implement a function to choose a random picture from the users gallery and display it on a page?

    Tks for the help.

  • Keymaster
    (BuddyDev Team)
    Posts: 21763
    Brajesh Singh on #16248

    Hi Oscar,

    Please use the orderby=rand in the media shortcode and limit it to per_page=1 and you will get one.

  • Participant
    Level: Enlightened
    Posts: 43
    Oscar on #16250

    You guys are awesome, love the support.

You must be logged in to reply to this topic.

This topic is: not resolved