Comments are not showing up on WP Pages or Posts, but pages are appearing as threads in Discourse

I have Discourse enabled for both posts and pages,

Comments I make on the WordPress pages like C2 – Faith Faraday – FF7.com don’t show up on that page itself or in discourse, but there is a thread called C2 in Discourse, with no replies. The corresponding thread to that page is at C2 - FF7.com - Faith Faraday Forum

The reason I’m trying to get this to work on pages is because I put rather short URLs at the end of each chapter of my book, and I really don’t want to redirect people.

I’m using my own install of Discourse, by the way.

Thank you for your help!

Hey Nathan, welcome, could you share the meta file from the Logs page?

Sure thing! Thanks for replying. Love your videos!

Strange, when I download the meta, the zip file is empty. Here’s the text from the ‘view meta’ field:

### This file is included in log downloads ###

### Server ###

WordPress - 6.8.3
PHP - 7.4.33
MySQL - 5.5.68

### Active Plugins ###

Breakdance - 2.5.2
WP-Discourse - 2.6.0

### WP Discourse Settings (Secrets Excluded) ###

connection-logs - 1
display-subcategories - 1
allow-tags - 1
max-tags - 5
publish-as-unlisted - 0
full-post-content - 0
custom-excerpt-length - 55
add-featured-link - 0
auto-publish - 1
force-publish - 1
force-publish-max-age - 0
publish-failure-notice - 1
auto-track - 1
allowed_post_types - post,page
exclude_tags - 
hide-discourse-name-field - 0
discourse-username-editable - 0
direct-db-publication-flags - 0
verbose-publication-logs - 1
enable-discourse-comments - 1
comment-type - display-comments
ajax-load - 1
load-comment-css - 0
discourse-new-tab - 0
hide-wordpress-comments - 1
show-existing-comments - 0
max-comments - 5
min-replies - 0
min-score - 0
min-trust-level - 0
bypass-trust-level-score - 50
only-show-moderator-liked - 0
custom-datetime-format - 
cache-html - 0
clear-cached-comment-html - 0
verbose-comment-logs - 0
use-discourse-webhook - 0
use-discourse-user-webhook - 0
webhook-match-user-email - 0
verbose-webhook-logs - 0
verbose-sso-logs - 1
enable-sso - 0
auto-create-sso-user - 0
real-name-as-discourse-name - 0
force-avatar-update - 0
redirect-without-login - 0
sso-client-enabled - 0
sso-client-login-form-change - 0
sso-client-sync-by-email - 0
sso-client-disable-create-user - 0
sso-client-sync-logout - 0
logs-enabled - 1

Ah, I think the issue in this case is that the page you’re trying to render comments on page that doesn’t have a comments_template. Check out “Display comments without loading the WordPress comments template” in

Thank you so much! Please forgive the newbie question, it’s been nearly 30 years since I was a web developer, but where in my template do I paste that code? I’m using the Breakdance template.

I’m not familiar with the breakdance template. You’ll need to edit the template on the page you linked to. Does breakdance have a code block or code element? If so use that to insert this snippet at the relevant location.

<?php
use WPDiscourse\Utilities\Utilities as DiscourseUtilities;
$discourse_comments = DiscourseUtilities::get_discourse_comments(get_the_ID());
echo $discourse_comments;
?>

I tried putting it in the header, but it ended up rendering on the page, so I’m going to try to put it in the top menu template as a code block. I’ll let you know how it goes!

That seems to have worked, but I think I need to find a different place to put the code block!

This part is one of the posts I made from the Discourse side showing up on the WordPress side:

I wonder if I post here on discourse if the post will show up on the C2 page on FF7.com

I missed your point about putting the code block in the correct location. That worked! But the viewer can’t comment/reply here on WordPress. Maybe I’m misunderstanding the feature?

Looking into the documentation/threads further, I now understand that I can only allow people to comment and use the advanced discourse features on the discourse view (makes sense), but I can render n number of comments on the WordPress page. I’m just going to have to have a link at the bottom that instructs them to reply after clicking the “Continue the discussion at forum.ff7.com” link.

1 Like

Thanks for explaining your thinking Nathan.

Sounds like a plan :+1: