# 移除“Originally published at”句子中的\<small\>标签

**URL:** <https://meta.discourse.org/t/remove-the-small-tags-of-the-originally-published-at-sentence/80539>\
**Category:** WordPress\
**Created:** [2018 年2 月 14 日 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:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![erikmolenaarnl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erikmolenaarnl/32/76132_2.png) [@erikmolenaarnl](https://meta.discourse.org/u/erikmolenaarnl)\
发布日期： [2018 年2 月 20 日 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' );

```

---

_[View the full topic](https://meta.discourse.org/t/remove-the-small-tags-of-the-originally-published-at-sentence/80539)._
