• Hi,
    I ave a filter function on the media items in the library. It works fine on the ‘list’ view, but when i switch to ‘grid’ view the filter function is not working. The filtering is done like this:

    $query->set( 'tax_query',array(
    	array(
          	'taxonomy' 	=> 'instellingen',
          	'terms'    	=> array($instId),
        ),
    ));

    I think the grid fiew is loaded by ajax? and is bypassing the pre_get_posts action.
    Is this a bug? or is there a workaround?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘pre_get_posts not working in admin upload.php mode=grid’ is closed to new replies.