BuddyDev

Search

Display most recent photos?

  • Participant
    Level: Initiated
    Posts: 7
    Clay on #8337

    What is the best way to display the 6 most recently uploaded user photos? I can display all photos, sorted from newest to oldest, but how do I limit the output to 6 (or any number)? Thanks.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #8338

    Hello Clay,

    Thanks for posting here, Please use the following shortcode to display user’s latest 6 photo uploaded.

    [mpp-list-media type=”photo” user_id=”1″ per_page=”6″ show_pagination=”0″]

    for more details please check the following url
    https://buddydev.com/mediapress/topics/getting-started/shortcodes/mpp-list-media/

    Thank You
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved