Skip to content

Commit 48237eb

Browse files
author
bighug
committed
Recover Archive Template Rewrite
1 parent bef74fc commit 48237eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/template-functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function dwqa_generate_template_for_submit_question_page($template) {
3939
}
4040
add_filter( 'page_template', 'dwqa_generate_template_for_submit_question_page', 20 );
4141

42+
4243
/**
4344
* Override template path of comment form in singe page for question custom post type
4445
* @param string $comment_template Template path
@@ -71,6 +72,8 @@ function dwqa_generate_template_for_questions_list_page($template) {
7172
}
7273
add_filter( 'taxonomy_template',
7374
'dwqa_generate_template_for_questions_list_page', 20 );
75+
add_filter( 'archive_template',
76+
'dwqa_generate_template_for_questions_list_page', 20 );
7477
/**
7578
* Print class for question detail container
7679
*/

0 commit comments

Comments
 (0)