Hey @simon
I used your template to customize the discourse_publish_format_html to display all posts in an iframe. However, the src parameter of the iframe output is empty. See here:
https://forum.cannabisanbauen.net/t/ist-meine-pflanze-maennlich-was-tun/7196
Any idea why? Below is my code:
// show post in iframe
function your_namespace_publish_format_html( $output ) {
global $post;
?>
<iframe width="690" height="2000" src="<?php echo esc_url( the_permalink() ); ?>" frameborder="0"></iframe>
<?php
$output = ob_get_clean();
// Return the default output, or do something else with it here.
return $output;
}
add_filter( 'discourse_publish_format_html', 'your_namespace_publish_format_html' );