Replies
Viewing 2 posts - 1 through 2 (of 2 total)
When I put it in my theme’s functions.php I see no change in order on the document’s gallery page ( https://leden.royalenfieldclub.nl/en/archief/fabriek-doc/ ), which is also paginated ( [mpp-show-gallery id=2292 status:”loggedin” search_terms=’1940′] etc. ).
What could be the cause of that?
greetings,
HollyI want to use this reply to order the media by title on the gallery display in my WordPress site royalenfieldclub.nl (see https://leden.royalenfieldclub.nl/archief/fabriek-doc/5/#1930-1939).
But in which file do I put the code and where in the file? (PS I don’t use Buddypress itself , just Mediapress).function buddydev_modify_media_order( $args ) { $args['orderby'] = 'title'; return $args; } add_filter( 'mpp_main_media_query_args', 'buddydev_modify_media_order' );
greetings,
Holly
Viewing 2 posts - 1 through 2 (of 2 total)