# Eliminar las etiquetas \<small\> de la frase "Originally published at"

**URL:** https://meta.discourse.org/t/remove-the-small-tags-of-the-originally-published-at-sentence/80539
**Category:** WordPress
**Created:** [14 Febrero, 2018 15:02 UTC](https://meta.discourse.org/t/remove-the-small-tags-of-the-originally-published-at-sentence/80539 "2018-02-14T15:02:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![erikmolenaarnl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erikmolenaarnl/32/76132_2.png) [@erikmolenaarnl](https://meta.discourse.org/u/erikmolenaarnl)
#### Post date: [14 Febrero, 2018 15:02 UTC](https://meta.discourse.org/t/remove-the-small-tags-of-the-originally-published-at-sentence/80539/1 "2018-02-14T15:02:38Z")

</div>

Hi!

When [WP Discourse](https://github.com/discourse/wp-discourse) generates a new topic for a new post, it outputs the “Published at Text” e.g. “Originally published at:” within `<small>` tags.

Is it possible to disable this `<small>` tags wrapping? It looks kinda out of place. Even better: if the post URL will be placed on a new line, a nicely polished onebox would be generated.

Like this: [02.14.2018-15.56.19 - TechSmith Screencast](https://www.screencast.com/t/GUo82Y2Fb)

Looking forward to your reply. Perhaps this makes a great suggestion for a future update of the plugin? Thanks.

---

<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: [14 Febrero, 2018 16:25 UTC](https://meta.discourse.org/t/remove-the-small-tags-of-the-originally-published-at-sentence/80539/2 "2018-02-14T16:25:45Z")

</div>

Yes, possibly the plugin should give some options for what template is used when a post is published to Discourse. It’s possible to customize the template that is used now. Take a look at the [Customize the structure of WP Discourse templates](https://meta.discourse.org/t/wp-discourse-template-customization/50754) topic to see how it’s done.

I like the image that you linked to. It’s possible to publish posts in that format by using a template similar to the one in [this post](https://meta.discourse.org/t/wp-discourse-template-customization/50754/6). If you change the template in that post to this, it should give you what you are looking for.

```php
function wpdc_custom_publish_format_html() {
	ob_start();
	?>
    This topic is to discuss the following lesson on {blogurl}<br>
	<?php
	the_permalink();
	$output = ob_get_clean();
	return $output;
}
add_filter( 'discourse_publish_format_html', 'wpdc_custom_publish_format_html' );

```

You will need to select the Use Full Post Content option on the [WP Discourse](https://github.com/discourse/wp-discourse) publishing options tab, and unselect the embed\_truncate setting on Discourse for this to work.

---

<div class="post-metadata">

### Author: ![erikmolenaarnl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erikmolenaarnl/32/76132_2.png) [@erikmolenaarnl](https://meta.discourse.org/u/erikmolenaarnl)
#### Post date: [20 Febrero, 2018 10:11 UTC](https://meta.discourse.org/t/remove-the-small-tags-of-the-originally-published-at-sentence/80539/3 "2018-02-20T10:11:13Z")

</div>

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

```
