Hello, how do I sort the sitewide listing of all galleries by alphabetical order?
I have tried in functions.php but it does not work:
function buddydev_modify_media_order( $args ) { $args['orderby'] = 'title'; return $args; } add_filter( 'mpp_main_media_query_args', 'buddydev_modify_media_order' );
- This topic was modified 5 years, 6 months ago by Brajesh Singh. Reason: updated quotes in code
Hi Fah Q,
Please use ‘mpp_main_gallery_query_args’ filter for gallery. Also, by default, ‘order’ is set to ‘DESC’, you might want to set that to ‘ASC’Marking resolved due to lack of reply from the topic author.
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘ [Resolved] How to sort Sitewide Gallery’ is closed to new replies.
This topic is: resolved