Notifications
Clear all
Topic starter
18/08/2017 4:03 pm
Hi everybody,
our website uses different way of commenting depending on the language:
- for language 1 we use the WP comments
- for languages 2 and 3 we use the FB comments plugin.
We would like to use wpdiscuz instead of the normal wp comments for lang 1, and keep FB for 2 and 3.
The "if" script is in the comments.php file, but wpdiscuz hooks in before that and kills our options: all languages have to use it.
Where should we put the script, in order to tell WP to choose the right comments system?
This is it:
<div id="comments" class="comments-area"> <?php if(ICL_LANGUAGE_CODE == 'en'){ ?> <div class="fb-comments" data-width="740" data-numposts="10"></div> <?php } ?> <?php if(ICL_LANGUAGE_CODE == 'es'){ ?> <div class="fb-comments" data-width="740" data-numposts="10"></div> <?php } ?> <?php if(ICL_LANGUAGE_CODE == 'it'){ ?> <?php comment_form(array('must_log_in'=>'<a href="/forum/misc/language?language_id=2&redirect=/forum/login/">Effettua il login per commentare</a>')); ?> <?php } else {?> <?php } ?>
Thanks