How to adjust the rt media query by taxonomy?

I’ve enabled a custom taxonomy that can be set for every media file being uploaded and I want to be able to adjust the query within /rtmedia/media/media-gallery.php

Normally I would go about it like this:

<?php $args = array( 'tax_query' => array( array( 'taxonomy' => 'media-category', 'field' => 'slug', 'terms' => 'test-neu' ) ) ); get_posts( $args ); ?>

for this taxonomy ‘media-category’, to output the posts which have the term ‘test-neu’

For some reason this isn’t working with global $rtmedia_query

Thoughts? Thanks in advance!

Hello @seanmccall14,

We have rtMedia Custom Attributes add-on which allows user to attach attributes to media. These attributes and their values can be added from back-end while configuring rtMedia attributes by admin.

Please once visit here for more information. It will help you to list media of a particular category.

I hope it will help you. Thanks, Pranali