@@ 655-657 (lines=3) @@ | ||
652 | $args = wp_parse_args( $atts, $default ); |
|
653 | $args['post_type'] = self::CUSTOM_POST_TYPE; // Force this post type |
|
654 | ||
655 | if ( false != $atts['include_type'] || false != $atts['include_tag'] ) { |
|
656 | $args['tax_query'] = array(); |
|
657 | } |
|
658 | ||
659 | // If 'include_type' has been set use it on the main query |
|
660 | if ( false != $atts['include_type'] ) { |
|
@@ 677-679 (lines=3) @@ | ||
674 | ) ); |
|
675 | } |
|
676 | ||
677 | if ( false != $atts['include_type'] && false != $atts['include_tag'] ) { |
|
678 | $args['tax_query']['relation'] = 'AND'; |
|
679 | } |
|
680 | ||
681 | // Run the query and return |
|
682 | $query = new WP_Query( $args ); |