• Resolved imfromio

    (@imfromio)


    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://www.ads-software.com/plugins/easy-video-gallery-responsive-html5/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Gallery filter broken’ is closed to new replies.