| @@ -525,8 +525,15 @@ | ||
| 525 | 525 | |
| 526 | 526 | return apply_filters( 'betterdocs_breadcrumb_archive_lists', $_lists, $origin_term ); |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | + public function is_inner_templates() { | |
| 530 | + if ( is_tax( 'knowledge_base' ) || is_tax( 'doc_category' ) || is_tax( 'doc_tag' ) || is_singular( 'docs' ) ) { | |
| 531 | + return true; | |
| 532 | + } | |
| 533 | + return false; | |
| 534 | + } | |
| 535 | + | |
| 529 | 536 | /** |
| 530 | 537 | * Summary of docs_query_args |
| 531 | 538 | * @param mixed $args |
| 532 | 539 | * @throws \Exception |
| @@ -624,11 +631,13 @@ | ||
| 624 | 631 | if ( isset( $args['tax_query'] ) ) { |
| 625 | 632 | $tax_query = $args['tax_query']; |
| 626 | 633 | } |
| 627 | 634 | |
| 635 | + | |
| 636 | + | |
| 628 | 637 | $args['tax_query'] = apply_filters( |
| 629 | 638 | 'betterdocs_docs_tax_query_args', |
| 630 | - $tax_query, $_multiple_kb, $_term_slug, $_kb_slug, $_origin_args | |
| 639 | + $tax_query, $_multiple_kb, $_term_slug, $_kb_slug, $_origin_args, $this->is_inner_templates() | |
| 631 | 640 | ); |
| 632 | 641 | /** |
| 633 | 642 | * Final parse args |
| 634 | 643 | */ |