@@ 597-603 (lines=7) @@ | ||
594 | } |
|
595 | ||
596 | // If 'include_type' has been set use it on the main query |
|
597 | if ( false != $atts['include_type'] ) { |
|
598 | array_push( $args['tax_query'], array( |
|
599 | 'taxonomy' => self::CUSTOM_TAXONOMY_TYPE, |
|
600 | 'field' => 'slug', |
|
601 | 'terms' => $atts['include_type'], |
|
602 | ) ); |
|
603 | } |
|
604 | ||
605 | // If 'include_tag' has been set use it on the main query |
|
606 | if ( false != $atts['include_tag'] ) { |
|
@@ 606-612 (lines=7) @@ | ||
603 | } |
|
604 | ||
605 | // If 'include_tag' has been set use it on the main query |
|
606 | if ( false != $atts['include_tag'] ) { |
|
607 | array_push( $args['tax_query'], array( |
|
608 | 'taxonomy' => self::CUSTOM_TAXONOMY_TAG, |
|
609 | 'field' => 'slug', |
|
610 | 'terms' => $atts['include_tag'], |
|
611 | ) ); |
|
612 | } |
|
613 | ||
614 | if ( false != $atts['include_type'] && false != $atts['include_tag'] ) { |
|
615 | $args['tax_query']['relation'] = 'AND'; |