# Vorrei sincronizzare automaticamente i post di WP con i topic Discourse esistenti se hanno lo stesso nome. Come ottenere un topic per titolo?

**URL:** <https://meta.discourse.org/t/i-would-like-to-automatically-sync-wp-posts-with-existing-discourse-topics-if-they-have-the-same-name-how-to-get-a-topic-by-title/90753>\
**Category:** WordPress\
**Created:** [25 Giugno 2018, 11:52pm UTC](https://meta.discourse.org/t/i-would-like-to-automatically-sync-wp-posts-with-existing-discourse-topics-if-they-have-the-same-name-how-to-get-a-topic-by-title/90753 "2018-06-25T23:52:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [25 Giugno 2018, 11:52pm UTC](https://meta.discourse.org/t/i-would-like-to-automatically-sync-wp-posts-with-existing-discourse-topics-if-they-have-the-same-name-how-to-get-a-topic-by-title/90753/1 "2018-06-25T23:52:47Z")

</div>

Hi.  
I have ~200 articles on my WP.  
I also have topics with the same name on my Discourse, from a phpbb import.

The phpbb topics were created when new articles were published in our previous CMS.

I’d like to sync all these old WP posts to these Discourse topics.

How would you do that? Not specifically how to call the sync, but rather how to get the topics from their title, while minimizing the risk of mismatches? I’m pretty confident that the WP posts and Discourse topic have the exact same title.

Should I use the Discourse search, get the first result and compare the title?

---

_[View the full topic](https://meta.discourse.org/t/i-would-like-to-automatically-sync-wp-posts-with-existing-discourse-topics-if-they-have-the-same-name-how-to-get-a-topic-by-title/90753)._
