diff --git a/tainacan-blocksy/inc/plugin.php b/tainacan-blocksy/inc/plugin.php index 98b2729..fa2a2dd 100644 --- a/tainacan-blocksy/inc/plugin.php +++ b/tainacan-blocksy/inc/plugin.php @@ -1,4 +1,21 @@ is_active() && + $query->is_search && + (is_search() || wp_doing_ajax()) + ) { + $query->set('ep_integrate', true); + } + } + return $query; +}); /** * Uses Template redirect for setting the proper template to items