• I inherited an old WP site, it’s a child theme. The Disqus plugin is installed and it displays on Pages instead of the WP comment template, but posts use the standard WP comments. I cannot for the life of me figure out why, the code for both is exactly the same (both have <?php comments_template( ”, true ); ?>). New pages can show Disqus just fine, but posts old and new only ever show the regular theme comment templates. This is true no matter what discussion settings I change in WP settings. I also can’t find anything in the Disqus account settings.
    Is there a setting I’m missing where you can define where Disqus gets pulled in on your site? Is there a shortcode or something I can use in my page templates to bring in Disqus manually? Do I need to reinstall the plugin entirely?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hm. By default, the Disqus plugin should have comments appear on Posts (where the WP native comments are enabled), and would not appear on Pages until the php comments template line has been added to those pages.

    Have you tried removing the php comments template line from the Posts? I’m wondering if this is somehow overriding Disqus’ ability to replace the WP native comments form based on the structure of Posts. That line should be required for Pages, but should not be required for Posts.

    Thread Starter SwordPress

    (@waxmikhail)

    So Pages (in this particular WordPress theme) does have the comments template. But posts do as well. After spending more time on it, it looks like the issue appears to be that Disqus will not load on privately published or preview posts (but comments will). Once the posts in question were published, Disqus showed up instead of the comments (I swore I published the posts in the course of troubleshooting but I don’t have another explaination).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disqus will show on Pages but not Posts’ is closed to new replies.