Title: Gallery filter broken
Last modified: August 31, 2016

---

# Gallery filter broken

 *  Resolved [imfromio](https://wordpress.org/support/users/imfromio/)
 * (@imfromio)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/gallery-filter-broken/)
 * This plugin is no longer supported, but it was working great for me until the
   gallery filter broke. Turned out to be a simple fix that I’ll share in case anybody
   else is having this issue.
 * The query around line 142 of easy-video.php is where the problem was. I removed
   these lines:
 *     ```
       if ($gallery) $query = '&egallery='.$gallery;
       $the_query = new WP_Query('posts_per_page='.$num.'&post_type=evideo&paged='.$page.$query);
       ```
   
 * And replaced them with the current way of doing a query by taxonomy:
 *     ```
       $args = array(
       		'post_type' => 'evideo',
       		'posts_per_page' => $num,
       		'paged' => $page,
       		'tax_query' => array(
       			array(
       				'taxonomy' => 'egallery',
       				'field'    => 'slug',
       				'terms'    => $gallery
       			),
       		),
       	);
       $the_query = new WP_Query( $args );
       ```
   
 * All fixed!
 * [https://wordpress.org/plugins/easy-video-gallery-responsive-html5/](https://wordpress.org/plugins/easy-video-gallery-responsive-html5/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [imfromio](https://wordpress.org/support/users/imfromio/)
 * (@imfromio)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/gallery-filter-broken/#post-7135496)
 * Since this is working for me, I’ll mark this as resolved.

Viewing 1 replies (of 1 total)

The topic ‘Gallery filter broken’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-video-gallery-responsive-html5.
   svg)
 * [Easy Video Gallery Responsive HTML5](https://wordpress.org/plugins/easy-video-gallery-responsive-html5/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-video-gallery-responsive-html5/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-video-gallery-responsive-html5/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-video-gallery-responsive-html5/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-video-gallery-responsive-html5/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * 1 reply
 * 1 participant
 * Last reply from: [imfromio](https://wordpress.org/support/users/imfromio/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/gallery-filter-broken/#post-7135496)
 * Status: resolved