GuidePremium
Import from another blog into CoullWorks Blog for Magento 2
The Import screen step by step: the five sources, every field on the import form, the dry run then live run flow, cron, the backup tick, the command line, and why Amasty Blog Pro is not offered.
Updated 17 November 2026Back to the package pageBuy
The importer copies posts, categories, tags, authors, comments and related items from another blog into CoullWorks Blog, and creates 301 redirects from the old addresses. You always run a dry run first. A live run starts from a finished dry run, is a separate step, and asks you to confirm that you have a backup.
Open Content, CoullWorks Blog, Import. You need the Import permission.
Where it lives#

The Import entry is the last item in the CoullWorks Blog column of the Content menu.
Sources#
Five sources are offered on the screen. Four read another Magento blog module's tables from the same database. One reads a WordPress export file.
| Source | Reads | Page |
|---|---|---|
| Magefan Blog (this database) | magefan_blog_* tables | Magefan |
| WordPress export (WXR file) | An uploaded export file | WordPress |
| Mageplaza Blog (this database) | mageplaza_blog_* tables | Mageplaza |
| Aheadworks Blog (this database) | aw_blog_* tables | Aheadworks |
| Mirasvit Blog MX (this database) | mst_blog_* tables | Mirasvit |

The Import from list, composed with the drop-down shown open. Five sources, in this order.
The four database sources read the other module's tables. Its Magento module can be disabled, but its tables must still be in the database. If a table or column the importer expects is missing, the job is refused and the job report names the table or column. Each page says which module version the table layout was checked against.
The import form#

The Import screen. Run dry run* is at the top right. Under the form is the list of earlier jobs.*
The notice at the top reads: "Choose a source. A dry run reads everything and reports what would happen without writing any content; the live run is a separate step. Large blogs are better imported from the command line: bin/magento coullworks:blog:import."
Import from#

The Source section.
- Type: drop-down, required.
- Options: the five sources above.
- What it changes: which other fields show. Choosing WordPress export reveals the export file and four WordPress options. The four database sources show only Old base URL under Options.
- Notice below it: when the source is a Magento module and that module is still enabled on this store, a notice reads "Disable Magefan Blog before going live: while it is enabled its router may answer the old addresses before Magento's rewrites." with the module's name. It does not appear when that module is not installed or is disabled.
Export file#
- Shown for: WordPress only.
- Type: file upload,
.xmlfiles. Help text: "In WordPress: Tools, Export, All content. Files over your PHP upload limit need the command line."

With WordPress chosen, the form adds the Export file* upload and, under Options, Author mapping, Also import pages as posts, Category base and Tag base. The source list is composed open.*
- What it does: the file is read in a stream, so a large export does not need to fit in memory, but the upload is limited by your PHP and web server settings.
Store view#

The Store view field in its default state.
- Type: drop-down.
- Options: As in the source (all stores for WordPress) (default), then each of your store views by name.
- What it changes: with a store view chosen, every imported record is saved to that store view only. With the default, a Magento module's own store links are kept, and a WordPress import goes to all store views. A record with no store link goes to all store views.
Options#

The Options section as it appears for a database source: only Old base URL.
Old base URL#

The field, with its hint and help text.
- Type: text, optional. It must be a full web address starting with
http://orhttps://, such ashttps://old.example.com/blog. Anything else stops the dry run with "The old base URL must be a full address such as https://old.example.com/blog." - What it does: says where the old posts lived. Old addresses are built under this address instead of under the old module's own route. On this store's own domain each old address gets a 301 redirect to its new address. On another domain Magento cannot answer for it, so the pairs go into a redirect map for you to load into the old site.
- Leave it empty when the old blog was on this store at the module's usual route. For WordPress, the address in the export is used when it contains one. See WordPress.
The WordPress-only options (Author mapping, Also import pages as posts, Category base, Tag base) are described on the WordPress page.
Run an import, step by step#
- Take a database backup. A live import writes posts, categories, tags, authors, comments and URL rewrites.
- Choose the source and fill the options.
- Choose Run dry run. The screen validates the choice and then queues the job: "The dry run is queued. It starts when cron next runs, within a minute."
- The job report opens and updates itself. See the job report. A dry run reads everything and reports what would be created and updated. It writes no content. Look at the counts, the warnings and the conflicts.
- When the dry run is Done or Done with errors, tick I have a backup of the database on the report and choose Run import.
- The live job is queued the same way and runs on the next cron tick. When it finishes, read the report again, and download the log.
- If the old site was on another domain, download the redirect map and load it into the old site.
- Run
bin/magento indexer:reindex coullworks_blog_postandbin/magento cache:flushso search and autocomplete include the imported posts. The indexers run on schedule and need cron.
Imports run from cron: the job coullworks_blog_import_run runs every minute and takes one job at a time. With no cron, jobs stay Queued. For large blogs use the command line, which runs at once:
bin/magento coullworks:blog:import <source> [options]The source is one of magefan, wordpress, mageplaza, aheadworks or mirasvit. See the CLI reference for every option.
Rules that hold for every source#
- A re-run does not duplicate. Each source record is mapped to what it created. Running again updates the mapped targets.
- One bad record does not stop the job. It is logged and skipped, and the job ends Done with errors.
- Order: authors, categories (parents first), tags, posts, related items, comments (parents first), then redirects.
- HTML is cleaned. Scripts, event handler attributes and
javascript:addresses are removed from imported content. - Images are downloaded or copied into
pub/media/coullworks_blog/imported, only from the source site, and are accepted as pictures by their content, not their file name. Largest Image to Download (MB) and Image Download Timeout (seconds) under Stores, Configuration, CoullWorks, Blog, Import limit them, 20 each by default. - Redirects are 301s for posts, categories, tags, authors, the feed and paginated list pages, where the source has them.
- Imported posts keep their live state where the source has one. A source post that was published becomes published, so an import can put posts live. Read the dry run counts before you run live.
Earlier jobs#
The grid under the form lists every job. See the job report.







