@@ 499-505 (lines=7) @@ | ||
496 | } |
|
497 | ||
498 | // If 'include_type' has been set use it on the main query |
|
499 | if ( false != $atts['include_type'] ) { |
|
500 | array_push( $args['tax_query'], array( |
|
501 | 'taxonomy' => self::CUSTOM_TAXONOMY_TYPE, |
|
502 | 'field' => 'slug', |
|
503 | 'terms' => $atts['include_type'], |
|
504 | ) ); |
|
505 | } |
|
506 | ||
507 | // If 'include_tag' has been set use it on the main query |
|
508 | if ( false != $atts['include_tag'] ) { |
|
@@ 508-514 (lines=7) @@ | ||
505 | } |
|
506 | ||
507 | // If 'include_tag' has been set use it on the main query |
|
508 | if ( false != $atts['include_tag'] ) { |
|
509 | array_push( $args['tax_query'], array( |
|
510 | 'taxonomy' => self::CUSTOM_TAXONOMY_TAG, |
|
511 | 'field' => 'slug', |
|
512 | 'terms' => $atts['include_tag'], |
|
513 | ) ); |
|
514 | } |
|
515 | ||
516 | if ( false != $atts['include_type'] && false != $atts['include_tag'] ) { |
|
517 | $args['tax_query']['relation'] = 'AND'; |