WP Discourse Version 1.8.2: Instead of my custom filters I’m getting “Comments are not currently available for this post.” inside a div that includes the class “discourse-no-connection-notice.” This is regardless of whether the post is using the Classic or Block Editor. The posts do publish to Discourse.
Thinking with the changes needed to be made to the discourse_publish_format_html filter (WP Discourse: advanced custom filter for discourse_publish_format_html), I changed both my replies functions/filters like so:
function cosmos_custom_discourse_replies( $input, $post_id ) {
ob_start();
?>
custom output here
<?php
$output = ob_get_clean();
return $output;
}
add_filter( 'discourse_replies_html', 'cosmos_custom_discourse_replies', 10, 2 );
Didn’t help. Unlinking and relinking to the existing topic results in an empty div with the class “wpdc-comments-loading” (at least in the context of no replies in my playing with it). Adding a comment on Discourse didn’t populate over to WP, still the same empty div. Removing my custom filters entirely does show default “Start the conversation at _.” Any tips on how to get my old custom filters working with the newest version?