Title: luite's Replies | WordPress.org

---

# luite

  [  ](https://wordpress.org/support/users/luite/)

 *   [Profile](https://wordpress.org/support/users/luite/)
 *   [Topics Started](https://wordpress.org/support/users/luite/topics/)
 *   [Replies Created](https://wordpress.org/support/users/luite/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/luite/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/luite/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/luite/engagements/)
 *   [Favorites](https://wordpress.org/support/users/luite/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Enhanced Media Library] filter in media not working properly](https://wordpress.org/support/topic/filter-in-media-not-working-properly/)
 *  [luite](https://wordpress.org/support/users/luite/)
 * (@luite)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/filter-in-media-not-working-properly/page/2/#post-4363508)
 * Posting to an older thread but could be of use to someone. I had the same issue;
   it turned out to be caused by the theme which had this code in functions.php,
   which is intended to run on the frontend but is breaking search/filter on the
   backend. You see this limits results to only “posts”; since images are not posts..
   no results whatsoever!
 *     ```
       function gt_search_filter($query) {
       if ($query->is_search) {
       $query->set('post_type', 'post');
       }
       return $query;
       }
       ```
   
 * I wrapped the offending line in another if statement to resolve
 *     ```
       if (!is_admin()){ ... }
       ```
   

Viewing 1 replies (of 1 total)