PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
← All changes | includes/FrontEnd/TemplateLoader.php +3 -10 4.5.23.8.9 View file →
@@ -69,15 +69,8 @@
69 69 * @param string $template The original template.
70 70 * @return string The archive template.
71 71 */
72 72 public function archive_template( $template ) {
73 - if( is_tax('doc_category') ) {
74 - // If 'archive-doc_category.php' exists in the theme, return it
75 - $theme_template = locate_template( 'archive-doc_category.php' );
76 - if ( $theme_template ) {
77 - return $theme_template;
78 - }
79 - }
80 73
81 74 if ( is_tax( 'glossaries' ) ) {
82 75 // Use a custom taxonomy template for your custom taxonomy
83 76
@@ -92,9 +85,9 @@
92 85
93 86 return apply_filters( 'betterdocs_archives_template', $template, $layout, $_default_template, $this->views );
94 87 }
95 88
96 - if ( get_post_type() !== 'docs' && ! is_tax('doc_category') && ! is_tax( 'doc_tag' ) && ! is_tax( 'knowledge_base' ) ) {
89 + if ( get_post_type() !== 'docs' ) {
97 90 return $template;
98 91 }
99 92
100 93 if ( is_embed() ) {
@@ -107,12 +100,12 @@
107 100
108 101 $_default_template = 'templates/archives/layout-1';
109 102 $layout = $this->database->get_theme_mod( 'betterdocs_docs_layout_select', 'layout-7' );
110 103 $_template = 'templates/archives/' . $layout;
111 -
104 +
112 105 if ( is_tax( 'doc_category' ) ) {
113 106 $category_layout = $this->database->get_theme_mod( 'betterdocs_archive_layout_select', 'layout-7' );
114 - if ( $category_layout == 'layout-7' || $category_layout == 'layout-8' ) {
107 + if ( $category_layout == 'layout-7' ) {
115 108 $_template = 'templates/archives/categories/' . $category_layout;
116 109 } else {
117 110 $_template = 'templates/taxonomy-doc_category';
118 111 }