@@ 592-594 (lines=3) @@ | ||
589 | $args = wp_parse_args( $atts, $default ); |
|
590 | $args['post_type'] = self::CUSTOM_POST_TYPE; // Force this post type |
|
591 | ||
592 | if ( false != $atts['include_type'] || false != $atts['include_tag'] ) { |
|
593 | $args['tax_query'] = array(); |
|
594 | } |
|
595 | ||
596 | // If 'include_type' has been set use it on the main query |
|
597 | if ( false != $atts['include_type'] ) { |
|
@@ 614-616 (lines=3) @@ | ||
611 | ) ); |
|
612 | } |
|
613 | ||
614 | if ( false != $atts['include_type'] && false != $atts['include_tag'] ) { |
|
615 | $args['tax_query']['relation'] = 'AND'; |
|
616 | } |
|
617 | ||
618 | // Run the query and return |
|
619 | $query = new WP_Query( $args ); |