PHPackages                             jezzdk/statamic-wp-import - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jezzdk/statamic-wp-import

AbandonedArchivedLibrary

jezzdk/statamic-wp-import
=========================

v1.7.2(1y ago)73.9k6PHP

Since Sep 13Pushed 1y ago4 watchersCompare

[ Source](https://github.com/statamic-rad-pack/wp-import)[ Packagist](https://packagist.org/packages/jezzdk/statamic-wp-import)[ RSS](/packages/jezzdk-statamic-wp-import/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

Statamic WP Import has been replaced
====================================

[](#statamic-wp-import-has-been-replaced)

**If you are looking for a way to import your content and data from WordPress to Statamic, head to the [Official Importer](https://github.com/statamic/importer) project.**

Note
----

[](#note)

Statamic WP Import can import simple content from your WP site in conjunction with a [WordPress plugin](https://github.com/jezzdk/wordpress-to-statamic-exporter).

Features
--------

[](#features)

This addon will:

- Create taxonomies and terms
- Create pages
- Create collections and entries

This addon will not:

- Create blueprints and fieldsets based on your ACF (or other custom field plugin) setup
- Create global sets and variables

All meta data that has been exported from Wordpress will be set as values on the entries. However, any meta data key prefixed with an underscore will be ignored. Also, inline images in post content will not be downloaded. See note about images below.

### Events

[](#events)

The addon is using the builtin methods for creating and saving content. As such, the normal events are dispatched which you can hook into for additional work according to your setup. That means you can listen on the following events to customize the import:

- `Statamic\Events\CollectionCreated`
- `Statamic\Events\CollectionSaved`
- `Statamic\Events\EntrySaving`
- `Statamic\Events\EntryCreated`
- `Statamic\Events\EntrySaved`
- `Statamic\Events\TaxonomySaved`
- `Statamic\Events\TermSaved`
- `Statamic\Events\AssetSaved`
- `Statamic\Events\AssetUploaded`

By the time you read this there might be others. Consult [the documentation](https://statamic.dev/extending/events#available-events) to learn more.

### A note regarding images

[](#a-note-regarding-images)

Only the featured image will be downloaded. Multiple featured images, images added with ACF and other plugins, are not downloaded. Featured images will be downloaded to the "assets" container by default (change in config), into a folder called "{collection\_handle}/{entry\_slug}", and saved on a field on the entry called "featured\_image".

You can use the events above to do your own downloading of images and what not. I have done this myself with great success 👍

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require statamic-rad-pack/wp-import
```

How to Use
----------

[](#how-to-use)

First of all, you must export your data using the [Export to Statamic Wordpress Plugin](https://github.com/statamic/wordpress-to-statamic-exporter). Check anything you wish to export, but have the notes above in mind.

Go to the `Tools > WP Import` section and upload the json file.

The summary will show you if anything was already found in your installation. If you choose to import it anyway, the content will be overwritten.

(De)Select anything you want and click "Import".

Done :)

Config
------

[](#config)

The content of the config file looks like this:

```
