I have a problem with disqus plugin on wordpress. How to display disqus on home page. so the single page is to be a home page, maybe like that.
Any idea to solve it?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am also unable to get disqus to work on homepage.
I can force the comments_template to appear by setting the following variable:
$withcomments = 1;
which makes the comments.php template appear but the discus plugin only kicks in if its on other pages other than home page.
Its as if the plugin itself prevents it if is_home() rather than listening to wp $withcomments variable
UPDATE
Can be fixed with plugin hack to disqus.php:
In
function dsq_comments_templatechange the conditionalif(!(is_singular() && ( have_comments() || 'open' == $post->comment_status ))In mycase where I wanted it to work on home and an aggregate page for a custom taxonomy ‘issue’ I did the following:
after
global $comments;made a var for the more complex condition (it can go in the if instead)
$pass = (is_home() || is_taxonomy('issue')) || (is_singular() && ( have_comments() || 'open' == $post->comment_status ));if(!$pass) {return}… the rest of function …
Be great if the developer made an option for this condition instead