Hi @simon
Thanks! I just wanted to let you know your code does output the introduction text, but the permalink is pasted as text and is not generated as a onebox preview. Below code does, I hope this is of any help to other users ![]()
function wpdc_custom_publish_format_html() {
ob_start();
echo nl2br ("This topic is to discuss the following lesson:\n");
the_permalink();
$output = ob_get_clean();
return $output;
}
add_filter( 'discourse_publish_format_html', 'wpdc_custom_publish_format_html' );