# Manually copying over comments from Wordpress, how do I can create user accounts?

**URL:** https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654
**Category:** WordPress
**Created:** [10월 24, 2017, 12:26오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654 "2017-10-24T00:26:54Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [10월 24, 2017, 12:26오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/1 "2017-10-24T00:26:54Z")

</div>

I am migrating my wordpress comments to discourse.

Is it possible to manually create a user account without touching the command line? I am outsourcing this task and can’t give access to the machine.

---

<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: [10월 24, 2017, 1:02오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/2 "2017-10-24T01:02:06Z")

</div>

> [@Quintin\_Par](#):
>
> Is it possible to manually create a user account without touching the command line?

Yes, it can be done with php/WordPress. There is some example code [here](https://github.com/scossar/wp-discourse-wishlist-member/blob/516a3018b97b6bad25559fd2c3302479162a1a45/lib/discourse-wishlist-utilities.php#L165). It assumes that the [WP Discourse](https://github.com/discourse/wp-discourse) plugin is activated. but it could be used without it by supplying values for the `api_key`, `api_username` etc.

Also, take a look at the [Discourse API Docs](http://docs.discourse.org/#tag/Users%2Fpaths%2F~1users%2Fpost).

Depending on when you need this done, the [WP Discourse](https://github.com/discourse/wp-discourse) plugin needs to have an API function added to it for creating Discourse users. Once that’s in place, you’ll be able to call something like `DiscourseUtilities::create_discourse_user( $wp_user );` That can be added soon, It’s needed for allowing the plugin to work with WordPress membership plugins.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [10월 24, 2017, 9:03오후 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/3 "2017-10-24T21:03:03Z")

</div>

I should have worded my statement better. It should have been: Can I create users without touching the code or commandline. Something a non-technical user can do it from the back or some admin section.  
Is this possible?

---

<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: [10월 24, 2017, 11:23오후 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/4 "2017-10-24T23:23:16Z")

</div>

> [@Quintin\_Par](#):
>
> I am migrating my wordpress comments to discourse.

How are you doing this?

> [@Quintin\_Par](#):
>
> Can I create users without touching the code or commandline.

Not yet, but it wouldn’t be hard to add an extension to the [WP Discourse](https://github.com/discourse/wp-discourse) plugin to do this. How many users are on your site? Are they all being added to Discourse?

The easiest way to get your WordPress users onto your Discourse forum would be to use WordPress as the SSO provider for Discourse, but unless you have a reason for users to be logging into WordPress, migrating the users to Discourse would probably be a better approach.

You could also just send invites to your WordPress users through the Discourse admin section. You would risk losing some users by doing it this way.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [10월 25, 2017, 12:19오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/5 "2017-10-25T00:19:32Z")

</div>

> [@simon](#):
>
> How are you doing this?

With the wordpress plugin.

> [@simon](#):
>
> How many users are on your site? Are they all being added to Discourse?

Around 1000 commenters and around 2500 comments. This is a blog.

> [@simon](#):
>
> migrating the users to Discourse would probably be a better approach.

So migrating the users to Discourse will automatically create accounts for them, right?  
If that’s the case, my problems are solved.

---

<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: [10월 25, 2017, 2:34오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/6 "2017-10-25T02:34:44Z")

</div>

I just wrote a plugin for exporting users. It needs a bit of work before it will be safe for a site with 1000 users. So far, it only exports users, but I think exporting posts/categories and comments is also possible. If so, it would be a cleaner solution for dealing with existing WordPress comments than what the [WP Discourse](https://github.com/discourse/wp-discourse) plugin is currently doing. It could also be used for sites that want to completely move from WordPress to Discourse.

 ![wp-discourse-export](https://global.discourse-cdn.com/meta/original/3X/9/0/90d0d36a8784b287e35e21cab51c7a2f5e0c84b8.png)

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [10월 25, 2017, 7:15오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/7 "2017-10-25T07:15:46Z")

</div>

Thanks so much for this. This is a so good.

---

<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: [10월 27, 2017, 9:54오후 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/8 "2017-10-27T21:54:14Z")

</div>

Exporting users, posts and comments from WordPress to Discourse works. The issue is that in a live environment the API calls to Discourse will have to be rate limited. That’s a solvable problem, but I’m not sure if it’s better to work on it, or to just develop a WordPress to Discourse migration script. I’ll have to get some advice about that.

I think that the [WP Discourse](https://github.com/discourse/wp-discourse) plugin _does_ need to be able to handle exporting large numbers of users. It’s needed for integrating with membership plugins.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 5, 2017, 2:41오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/9 "2017-11-05T02:41:21Z")

</div>

@simon I was just looking at [WP Discourse](https://github.com/discourse/wp-discourse) plugin (1.4.7). I don’t see this option. Is this not in production yet?

---

<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: [11월 5, 2017, 3:39오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/10 "2017-11-05T03:39:18Z")

</div>

> [@Quintin\_Par](#):
>
> I don’t see this option. Is this not in production yet?

No, I haven’t worked through the problem of dealing will a huge number of API calls.

It sounds like what would work for you would be a full migration of your WordPress site to Discourse. Is that what you are trying to achieve?

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 5, 2017, 5:22오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/11 "2017-11-05T05:22:31Z")

</div>

I want to migrate the comments by preserving/associating them to the wordpress author (by creating discourse accounts for each of them). I was planning to create the user accounts manually. Since there was no way to migrate/synchronize this your comment gave me hope 😞

---

<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: [11월 5, 2017, 6:37오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/12 "2017-11-05T06:37:05Z")

</div>

Sorry, I was getting ahead of myself. A `create_discourse_user` function is going to be added to the plugin soon, but it’s not going to be setup to handle multiple users. There are a few different ways that it _could_ be used to export a lot of users.

I think a full WordPress to Discourse migration script could be useful. I’ll look into it some more and get back to you.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 5, 2017, 7:07오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/13 "2017-11-05T07:07:05Z")

</div>

In that case, what does this do?

[https://github.com/scossar/wp-discourse-export](https://github.com/scossar/wp-discourse-export)

---

<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: [11월 5, 2017, 7:25오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/14 "2017-11-05T07:25:29Z")

</div>

It exports a WordPress site to Discourse through the API, but it’s not safe to use in a live environment. It also doesn’t handle multi-level threaded comments correctly - note that the README says Work in Progress.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 5, 2017, 7:32오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/15 "2017-11-05T07:32:05Z")

</div>

Oh I wish this was complete…

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11월 5, 2017, 10:48오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/16 "2017-11-05T10:48:34Z")

</div>

I think the solution is to modify an import script to pull the data over. It typically takes a day to get it done enough to know how much longer it’ll take to finish the job. If you have a budget, you can post in #Marketplace or ask me. If not, the simple press importer is a decent place to start.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 5, 2017, 4:43오후 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/17 "2017-11-05T16:43:47Z")

</div>

Thank you @pfaffman. I run a small no-revenue blog. Bit scared to post there 🙂

Edit: Here’s the post:

> [@\[Paid\] Migrating old wordpress comments and users to Discourse](https://meta.discourse.org/t/paid-migrating-old-wordpress-comments-and-users-to-discourse/73468):
>
> Continuing my discussion from here: I was successful in setting up discourse as the commenting platform for wordpress. Unfortunately, there are no migration scripts. Which means one can create a new wordpress post and the corresponding discourse post and comments will be created. This leads to maintaining two commenting solutions (wordpress and discourse). It’s a messy thing to do. @simon has a WIP project that needs to be completed read through the earlier discussion link for context. I …

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 6, 2017, 3:26오후 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/18 "2017-11-06T15:26:47Z")

</div>

@pfaffman Can you please take a look at [[Paid] Migrating old wordpress comments and users to Discourse](https://meta.discourse.org/t/paid-migrating-old-wordpress-comments-and-users-to-discourse/73468?source_topic_id=72654)? If you have a quote, that would help me figure out next steps.

---

<div class="post-metadata">

### Author: ![Victor\_Ashiedu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victor_ashiedu/32/264361_2.png) [@Victor\_Ashiedu](https://meta.discourse.org/u/Victor_Ashiedu)
#### Post date: [7월 2, 2022, 10:49오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/19 "2022-07-02T10:49:34Z")

</div>

[WP Discourse](https://github.com/discourse/wp-discourse) 플러그인에 이 기능이 추가되었는지 궁금합니다. 즉, WP의 현재 모든 댓글을 내보내고 모든 사용자에게 Discourse 계정을 생성하는 기능이 지원되는지 묻는 것입니다. 댓글을 잃어버리는 대신 모든 WP 댓글을 Discourse로 이전할 수 있으면 좋았을 텐데요.

미리 감사합니다.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [7월 3, 2022, 6:10오전 UTC](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654/20 "2022-07-03T06:10:08Z")

</div>

아니요, 그 중 어떤 것도 아닙니다. 제가 아는 한, WP의 댓글을 Discourse에 통합할 수 있는 무료(또는 유료) 도구는 없습니다. [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)를 사용하면 계정 생성은 더 쉽지만, 그 대신 Discourse에 로그인하는 다른 모든 방식이 사라집니다.

그리고 또 한 번 말씀드리지만, 제가 틀렸으면 좋겠습니다. 하지만 댓글 관련해서는 틀리지 않았습니다.

[다음 페이지](https://meta.discourse.org/t/manually-copying-over-comments-from-wordpress-how-do-i-can-create-user-accounts/72654.md?page=2)
