# Wordpress에 게시할 때 이미지 링크가 표시되지 않음

**URL:** https://meta.discourse.org/t/image-links-not-appearing-when-published-to-wordpress/267681
**Category:** WordPress
**Created:** [6월 8, 2023, 3:43오후 UTC](https://meta.discourse.org/t/image-links-not-appearing-when-published-to-wordpress/267681 "2023-06-08T15:43:31Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [6월 9, 2023, 9:38오전 UTC](https://meta.discourse.org/t/image-links-not-appearing-when-published-to-wordpress/267681/5 "2023-06-09T09:38:25Z")

</div>

Canapin님, 감사합니다.

@anon48433008 [WP Discourse](https://github.com/discourse/wp-discourse) 플러그인이 HTML을 일부 파싱한 후, Discourse에서도 HTML 파싱 및 재스크래핑을 수행하기 때문에 이 문제가 발생할 수 있는 경우가 몇 가지 있습니다. 링크가 제거되는 현상은 주로 Discourse의 HTML 파싱 및 재스크래핑 과정에서, 즉 Discourse가 게시물 내의 내장된 HTML을 처리하는 방식에서 발생한다고 볼 수 있습니다. 예를 들어 아래를 참고해 보세요.

> [@Embeds stripped when "show full post..." button is clicked](https://meta.discourse.org/t/embeds-stripped-when-show-full-post-button-is-clicked/104025):
>
> For example, I inserted a Youtube video inline in a WP post that got pushed to Discourse as a topic. When people click the “Show full post…” button, for some reason the Youtube video doesn’t come through. (I’m only guessing this is true for all embeds. Perhaps it’s a Youtube-specific problem?)

또는

> [@임베드된 게시물의 텍스트를 커스터마이즈하는 방법?](https://meta.discourse.org/t/how-to-customize-the-text-in-an-embedded-post/214826/7?u=angus):
>
> Thanks for explaining Kevin. There are no settings specifically directed at this issue, but there’s two ways you could approach this. Customize what HTML is pulled from your site The way embeds work is that they scrape the content from a site using the [Readability](https://github.com/cantino/ruby-readability) gem. The gem and it’s output use the following options to filter what HTML is scraped opts[:whitelist] = SiteSetting.allowed\_embed\_selectors if SiteSetting.allowed\_embed\_selectors.present? opts[:blacklist] = SiteSetting.blocked\_embed…

‘기술적’ 해결책을 찾는 것보다는, 제 구체적인 조언은 링크와 이미지를 분리하는 것입니다. 예를 들어 이미지 아래에 링크를 배치하는 방식이죠. 하나로 묶어 두는 것이 더 좋으실 수 있다는 점은 이해하지만, 일관되게 작동하게 만들려면 힘든 싸움이 될 것입니다. 분리하는 방식이 효과를 볼 수 있습니다.

결론적으로, Discourse는 가져온 게시물에 대해 HTML의 완전한 보존을 목표로 하지 않습니다. 토론을 위한 콘텐츠의 충실성을 목표로 합니다. 따라서 Wordpress \> Discourse 전략은 이 점을 염두에 두고 수립해야 하며, 이는 사용자가 Wordpress에서 게시물을 읽도록 하고, Discourse에 있는 버전은 토론을 위한 참고 자료로만 존재하도록 해야 한다는 의미입니다.

---

_[View the full topic](https://meta.discourse.org/t/image-links-not-appearing-when-published-to-wordpress/267681)._
