# How to publish a thumbnail image recording

**URL:** https://meta.discourse.org/t/how-to-publish-a-thumbnail-image-recording/58212
**Category:** WordPress
**Created:** [2 במרץ,‏ 2017,‏ 8:46am UTC](https://meta.discourse.org/t/how-to-publish-a-thumbnail-image-recording/58212 "2017-03-02T08:46:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![11145](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/11145/32/119636_2.png) [@11145](https://meta.discourse.org/u/11145)
#### Post date: [2 במרץ,‏ 2017,‏ 8:46am UTC](https://meta.discourse.org/t/how-to-publish-a-thumbnail-image-recording/58212/1 "2017-03-02T08:46:41Z")

</div>

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>

```

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2 במרץ,‏ 2017,‏ 10:23am UTC](https://meta.discourse.org/t/how-to-publish-a-thumbnail-image-recording/58212/2 "2017-03-02T10:23:20Z")

</div>

Take a look at the template customization [documentation](https://meta.discourse.org/t/wp-discourse-template-customization/50754). Adding something like this to your theme’s `functions.php` file should work.

```plaintext
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' );

```
