WP_Query()クラスを使用して自分の投稿の一部をフィルタリングしたいのですが。私が今直面している問題は、分類クエリの処理です。通常は、WP_Query()1つの関係tax_query()(ANDまたはOR)のみを処理しますが、でこれらの関係を混合して使用する必要がありtax_query()ます。どうすればそれを実現できますか?
例えば
'tax_query' => array(
        'relation' => 'AND',
        array(
            'taxonomy' => 'taxonomy1',
            'field' => 'slug',
            'terms' => array( $term)
        ),
        array(
            'taxonomy' => 'taxonomy3',
            'field' => 'slug',
            'terms' => 'terms' => array( $term3),
            'operator' => 'IN',
        )
       // below i want to use OR relationship
       'relation' => 'OR',
      array(
            'taxonomy' => 'taxonomy4',
            'field' => 'slug',
            'terms' => array( $term4)
        ),
        array(
            'taxonomy' => 'taxonomy2',
            'field' => 'slug',
            'terms' => 'terms' => array( $term2),
            'operator' => 'IN',
        )
    )  上記のコードが機能していないことはわかっていますが、WP_Query()フィルターを使用する必要がありますか?何か案が?