# wp-discourse-embed에서 WP Discourse로 마이그레이션 – 이전 게시물이 표시되지 않음

**URL:** <https://meta.discourse.org/t/migrating-from-wp-discourse-embed-to-wp-discourse-old-posts-not-showing-up/302264>\
**Category:** Product Support\
**Tags:** wordpress\
**Created:** [4월 3, 2024, 6:37오후 UTC](https://meta.discourse.org/t/migrating-from-wp-discourse-embed-to-wp-discourse-old-posts-not-showing-up/302264 "2024-04-03T18:37:22Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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:** [4월 11, 2024, 3:13오전 UTC](https://meta.discourse.org/t/migrating-from-wp-discourse-embed-to-wp-discourse-old-posts-not-showing-up/302264/14 "2024-04-11T03:13:08Z")

</div>

> [@Jane\_Jojo](#):
>
> 레거시 버전이 필요한 것 같다는 생각이 드는데, 맞나요?

기억에 의존해서 말씀드리지만, 수정된 `comments.php` 파일이 문제의 원인은 아닐 것 같습니다. 원래 일어나야 할 일은 테마의 `comments.php` 파일이 로드되는 대신, 테마에서 이 함수가 호출될 때 [WP Discourse](https://github.com/discourse/wp-discourse) 플러그인이 자체 댓글 섹션을 로드하는 것입니다: `comments_template()`.

Discourse에 연결된 게시물을 표시하는 데 사용되는 테마의 `single.php` 파일 또는 해당 파일을 확인해 보세요. 해당 파일에 `comments_template()` 호출이 포함되어 있는지 살펴보세요. 다음과 같은 형태일 것입니다:

```php
if ( comments_open() || get_comments_number() ) :
	comments_template();
endif;

```

`coments_template()` 호출이 [WP Discourse](https://github.com/discourse/wp-discourse) 댓글을 로드하도록 트리거해야 합니다.

제가 틀렸을 수도 있습니다. 만약 이 방법으로 문제가 해결되지 않으면 더 자세히 살펴보겠습니다.

---

_[View the full topic](https://meta.discourse.org/t/migrating-from-wp-discourse-embed-to-wp-discourse-old-posts-not-showing-up/302264)._
