Same, we just published a normal blog post, with ‘discourse_publish_format_html’ filtered as follows:
function ccmm_discourse_publish_format_html()
{
ob_start();
echo "<h2>View on the Cracking the Code Platform:</h2><br />\n\n";
the_permalink(); // The post's WordPress permalink
$output = ob_get_clean();
return $output;
}
add_filter('discourse_publish_format_html', 'ccmm_discourse_publish_format_html');
And only the “view on platform” part worked, not the_permalink().
@simon I believe this is the first blog post we’ve published since upgrading to WP 5.0 (w/ Gutenberg editor), I wonder if that could have something to do with this?