|
@@ 511-513 (lines=3) @@
|
| 508 |
|
$args = wp_parse_args( $atts, $default ); |
| 509 |
|
$args['post_type'] = self::CUSTOM_POST_TYPE; // Force this post type |
| 510 |
|
|
| 511 |
|
if ( false != $atts['include_type'] || false != $atts['include_tag'] ) { |
| 512 |
|
$args['tax_query'] = array(); |
| 513 |
|
} |
| 514 |
|
|
| 515 |
|
// If 'include_type' has been set use it on the main query |
| 516 |
|
if ( false != $atts['include_type'] ) { |
|
@@ 533-535 (lines=3) @@
|
| 530 |
|
) ); |
| 531 |
|
} |
| 532 |
|
|
| 533 |
|
if ( false != $atts['include_type'] && false != $atts['include_tag'] ) { |
| 534 |
|
$args['tax_query']['relation'] = 'AND'; |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
// Run the query and return |
| 538 |
|
$query = new WP_Query( $args ); |