Media Library List View filter issue

Home Forums Salamat WordPress Theme Media Library List View filter issue

This topic contains 3 replies, has 2 voices, and was last updated by  ab-themes 7 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17789

    Ross Duggan
    Participant

    When viewing assets in the Media Library in LIST view, you cannot display any items when using filters. It is okay in GRID view.

    Go to Media Library > Select List View > Filter for images by date (e.g. July 2016)
    No images are shown!

    Select Grid View >
    Images are shown.

    To test this, I switched to a different Theme, and there were no issues.

    #17795

    ab-themes
    Keymaster

    Hi,

    we fix this issue. We just delete this code in functions.php:

    if (!function_exists('ABdev_salamat_search')) {
    	function ABdev_salamat_search( $query ) {
    		if ( $query->is_search && !is_admin() ) {
    			$query->set( 'post_type', array( 'post', 'page', 'feed', 'portfolio', 'subscribers', 'testimonials', 'product' ));
    		}
    		return $query;
    	}
    }
    add_filter( 'pre_get_posts', 'ABdev_salamat_search' );

    Now all works fine. Thank you for pointing this issue to us :)

    Cheers

    #17799

    Ross Duggan
    Participant

    That worked! Thank you!

    #17801

    ab-themes
    Keymaster

    No problem :)

    Cheers

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Media Library List View filter issue’ is closed to new replies.