maxunet
asked 4 years ago

hi,
i’m using dw qa pro plugin and newspaper theme v 10.3.1.
on question page i see “Fatal error: Cannot redeclare td_comment() (previously declared in …./td-standard-pack/Newspaper/comments.php:138) in …/wp-content/plugins/td-standard-pack/Newspaper/comments.php on line 138
for example:
https://www.sanalsantiye.com/sorucevap/apartmandaki-catlaklar/
Could you help me please?
thanks!

1 Answers
DominicStaff
answered 4 years ago

At the moment, the plugin conflicting with the Tagdiv plugin, you can use the following code in the functions.php file:

// Fix DW Q&A conflict with Tagdiv plugin
add_action('template_redirect', 'remove_td_comment_filter', 10);
function remove_td_comment_filter(){
    if ( is_singular('dwqa-question')){
        remove_filter( 'comments_template', 'tdc_template_include', 99 );
    }
}
Powered by DW Question & Answer Pro