• Resolved Adam

    (@gourmetbooks)


    Hi all,

    When you say this plugin can filter anything, does that include image galleries?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support fesupportteam

    (@fesupportteam)

    Hi @gourmetbooks

    If you are talking about media?then, of course, you would need to add this code so it will remove the attachment (media) from excluding. The media should be displayed with WP_Query on the page to filter it.

    add_filter( 'wpc_filter_post_types', 'flrt_exclude_post_types1' );
    
    function flrt_exclude_post_types1($post_types){
    	$post_types = array(
    		FLRT_FILTERS_POST_TYPE,
    		FLRT_FILTERS_SET_POST_TYPE,
    		'elementor_library',
    		'e-landing-page',
    		'jet-smart-filters',
    		'ct_template'
        	);
    
    	return $post_types;
    }

    Best Regards – Victor

    Thread Starter Adam

    (@gourmetbooks)

    Thanks much for the quick reply! I tried implementing this for an hour this morning and couldn’t get anywhere. I’ll reinstall if you decide to include native support for media/galleries.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can this plugin filter images in a gallery?’ is closed to new replies.