# Importing Data to Discourse

**URL:** https://meta.discourse.org/t/importing-data-to-discourse/237044
**Category:** Migration
**Tags:** wordpress
**Created:** [August 24, 2022, 11:33am UTC](https://meta.discourse.org/t/importing-data-to-discourse/237044 "2022-08-24T11:33:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ali3](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ali3/32/161350_2.png) [@Ali3](https://meta.discourse.org/u/Ali3)
#### Post date: [August 24, 2022, 11:33am UTC](https://meta.discourse.org/t/importing-data-to-discourse/237044/1 "2022-08-24T11:33:17Z")

</div>

Hi, I have a website on WordPress, where I have around 35000 Post, and want to shift my website from Wordpress to Discourse, I have the ability to extract data from my website in different formats, like CSV, etc

Can you please suggest what can be the best option for me?

I am thinking to extract data from my wordpress website into csv, columns,and inserting that in discourse

Thanks in advance

---

<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: [August 24, 2022, 12:39pm UTC](https://meta.discourse.org/t/importing-data-to-discourse/237044/2 "2022-08-24T12:39:58Z")

</div>

You’ll want to have a look at `scripts/import_scripts` for examples of import scripts and read from the SQL database rather than csv. At least a couple are for various WordPress-based things. I think that I once wrote a script to import WP comments, but the client ended up not using it and I don’t see it at first glance.
