BuddyDev

Search

sort galleries?

Tagged: 

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

    I’m using mpp_list_gallery along with code in functions.php (which I got from another forum post) to show a grid of gallery thumbnails with usernames below the thumbnails. I’m wondering how the galleries are sorted and if it’s possible to give the users sorting options. Thanks.

  • Keymaster
    (BuddyDev Team)
    Posts: 22213
    Brajesh Singh on #7975

    Hi Clay,
    Thank you for posting.

    We support “order” and “orderbyy” options in teh gallery list shortcode. By default, it is sorted by date in descending order.

    You can use the following options in the shortcode
    [mpp-list-gallery order =’DESC’ orderby = ‘date’]

    All the values for order/orderby supported in WP_Query are supported in the shortcode.

    https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    Hope that helps.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved