|
@@ 516-522 (lines=7) @@
|
| 513 |
|
} |
| 514 |
|
|
| 515 |
|
// If 'include_type' has been set use it on the main query |
| 516 |
|
if ( false != $atts['include_type'] ) { |
| 517 |
|
array_push( $args['tax_query'], array( |
| 518 |
|
'taxonomy' => self::CUSTOM_TAXONOMY_TYPE, |
| 519 |
|
'field' => 'slug', |
| 520 |
|
'terms' => $atts['include_type'], |
| 521 |
|
) ); |
| 522 |
|
} |
| 523 |
|
|
| 524 |
|
// If 'include_tag' has been set use it on the main query |
| 525 |
|
if ( false != $atts['include_tag'] ) { |
|
@@ 525-531 (lines=7) @@
|
| 522 |
|
} |
| 523 |
|
|
| 524 |
|
// If 'include_tag' has been set use it on the main query |
| 525 |
|
if ( false != $atts['include_tag'] ) { |
| 526 |
|
array_push( $args['tax_query'], array( |
| 527 |
|
'taxonomy' => self::CUSTOM_TAXONOMY_TAG, |
| 528 |
|
'field' => 'slug', |
| 529 |
|
'terms' => $atts['include_tag'], |
| 530 |
|
) ); |
| 531 |
|
} |
| 532 |
|
|
| 533 |
|
if ( false != $atts['include_type'] && false != $atts['include_tag'] ) { |
| 534 |
|
$args['tax_query']['relation'] = 'AND'; |