{"id":13451979,"url":"https://github.com/konsalex/gatsby-wordpress-migrate","last_synced_at":"2026-03-16T15:40:45.268Z","repository":{"id":49922543,"uuid":"164237254","full_name":"konsalex/gatsby-wordpress-migrate","owner":"konsalex","description":"Simple Node Script for converting Wordpress XML export of Posts to Gatsby blogposts 🤟","archived":false,"fork":false,"pushed_at":"2021-06-08T08:54:39.000Z","size":1479,"stargazers_count":100,"open_issues_count":0,"forks_count":11,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T03:15:10.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/konsalex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-05T17:37:40.000Z","updated_at":"2024-12-11T20:58:44.000Z","dependencies_parsed_at":"2022-09-05T18:50:39.929Z","dependency_job_id":null,"html_url":"https://github.com/konsalex/gatsby-wordpress-migrate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsalex%2Fgatsby-wordpress-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsalex%2Fgatsby-wordpress-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsalex%2Fgatsby-wordpress-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsalex%2Fgatsby-wordpress-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konsalex","download_url":"https://codeload.github.com/konsalex/gatsby-wordpress-migrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813803,"owners_count":21165634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:01:09.042Z","updated_at":"2026-03-16T15:40:40.242Z","avatar_url":"https://github.com/konsalex.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"Gatsby\" src=\"./w2g.jpg\" width=\"400\" /\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  gatsby-wordpress-migrate\n\u003c/h1\u003e\n\n![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)\n![](https://img.shields.io/npm/l/gatsby-wordpress-migrate.svg)\n![](https://img.shields.io/npm/dw/gatsby-wordpress-migrate.svg)\n\nMigrate from Wordpress without pain!\n\nHuge community is migrating from Wordpress to Gatsby, especially developers. In order to migrate with ease and out of my pain I created this tool.\n\nWith `gatsby-wordpress-migrate` you can convert all your wordpress posts to gatsby-blog compatible in a fraction of a command.\n\n## 🚀 Quick start\n\n\n\n**Install** this package globally or to your project with npm or yarn.\n\n```sh\n# Install gatsby-wordpress-migrate globally with yarn\nyarn global add gatsby-wordpress-migrate\n```\n\nor\n\n```sh\n# Install gatsby-wordpress-migrate locally with yarn and make it a dev dependency\nyarn add -D gatsby-wordpress-migrate\n```\n\n**Heads up**. To download all the Wordpress posts of yours, login to your Wordpress dashboard, go to `Tools \u003e Export` and then download export file with your posts.\n\n**Tip:**\nAdd this code at the end of the functions.php (on wordpress, go to Appearance \u003e Editor \u003e functions.php) of your wordpress theme to export the `\u003cp\u003e` tags so we'll be able to make your text breath (otherwise they are not exported and we won't be able to say when paragraphs start/end) ;)\n\n```php\nfunction codelight_content_export($content) {\n return wpautop($content);\n}\nadd_filter('the_content_export', 'codelight_content_export', 999);\n```\n\n\u003cbr\u003e\n\n**Run** the CLI commands `wordpress2gatsby` and let it guide you **or** run it with the following syntax.\n\n```sh\nwordpress2gatsby \u003cXML filename\u003e \u003cdestination folder\u003e\n# Example: wordpress2gatsby wordpressdata.xml content/blog\n```\n\n## 🧐 Example\n\n![example](./example.gif)\n\n## 🤟 Help it grow\n\nYou can jump in and contribute directly or file an issue in order to start exploring more opportunities/edge cases\n\nTo file the issue just follow the instructions 📃\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003csub\u003e\u003csup\u003eMade with\u0026nbsp\u0026nbsp🧠 \u0026nbsp\u0026nbspby \u003ca href=\"https://twitter.com/CostasAlexoglou\"\u003eProduct E:ngineer\u003c/a\u003e\u003c/sup\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonsalex%2Fgatsby-wordpress-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonsalex%2Fgatsby-wordpress-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonsalex%2Fgatsby-wordpress-migrate/lists"}