fix: get facets count of the metadata type relationship
This commit is contained in:
parent
ed436da709
commit
5848d92278
|
@ -708,8 +708,10 @@ class Items extends Repository {
|
|||
foreach($args['meta_query'] as $idx => $meta) {
|
||||
$meta_id = $meta['key'];
|
||||
$metadata = $Tainacan_Metadata->fetch($meta_id);
|
||||
if($metadata->get_metadata_type() === 'Tainacan\\Metadata_Types\\Relationship')
|
||||
{
|
||||
if(
|
||||
$metadata->get_metadata_type() === 'Tainacan\\Metadata_Types\\Relationship'
|
||||
&& (isset($meta['compare']) && !in_array($meta['compare'], ['IN', 'NOT IN', '=']))
|
||||
) {
|
||||
$options = $metadata->get_metadata_type_options();
|
||||
if( isset($options) && isset($options['search']) ) {
|
||||
$this->relationsip_metaquery = array(
|
||||
|
|
Loading…
Reference in New Issue