How to publish a thumbnail image recording

What string to add additional entries to publish a thumbnail image. At the moment I have the following code:

{excerpt}<br>
	
#<KBD>[<?php esc_html( self::get_text_options( 'published-at-text' ) ); ?>]({blogurl})</KBD>

----------
<KBD>[πŸ–₯ site β†’](https://site/)</KBD> <KBD>[πŸ“† site1 β†’](https://site/)</KBD>

Take a look at the template customization documentation. Adding something like this to your theme’s functions.php file should work.

function my_namespace_publish_format( $input ) {
    ob_start();
    ?>
    Originally published at: {blogurl}<br><br>
    {thumbnail}
    {excerpt}

    <?php
    $output = ob_get_clean();

    // Note: the call to apply_filters() that was in the original function has been removed.
    return $output;
}

add_filter( 'discourse_publish_format_html', 'my_namespace_publish_format' );
3 Likes