I have created a repeater field which has a sub field to select the taxonomy that has an image attached to it in the media library.
What i want to do is display the selected image in the front end for that taxonomy field, at the moment the code I have shows the first 10 images in the media library, how do i get it to display only the field for the selected taxonomy?
$args = array(
‘post_type’ => ‘attachment’,
‘post_status’ => ‘inherit’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘media_category’,
‘field’ => ‘id’,
‘terms’ => $term_id
)