Skip to content
Available for new work
Pages in Blog

GuidePremium

Import from Magefan Blog into CoullWorks Blog for Magento 2

Import Magefan Blog from the same database: what is read, what each record becomes, how old addresses are rebuilt from Magefan's permalink settings, and the notice about disabling Magefan before go live.

Updated 17 November 2026Back to the package pageBuy

This source reads Magefan Blog's tables from the same Magento database. Read the import overview first for the flow.

Choose it#

The Import form with Magefan Blog (this database) chosen and the Import from list shown open, with Store view and Old base URL below

Magefan Blog (this database) chosen. The list is composed open. For this source the form shows Store view* and Old base URL only, above the list of earlier jobs.*

  1. Open Content, CoullWorks Blog, Import.
  2. Set Import from to Magefan Blog (this database).
  3. Optionally choose a Store view and an Old base URL: see the overview.
  4. Choose Run dry run.

What it needs#

The magefan_blog_* tables must be in the database: posts and their links to stores, categories, tags, related posts and related products, plus categories, tags and comments. The structure the importer expects was checked against Magefan Blog 2.13.1. If a table or column is missing, or a different version has changed one, the job is refused and the report names it.

Magefan Blog itself does not have to be enabled for the import to read its tables. See the notice below.

What is imported#

RecordNotes
AuthorsMagefan's free edition uses Magento admin users as authors. One blog author is created for each admin user who wrote a post.
CategoriesThe same tree.
Tags
PostsTitle, address key, content, short content, featured image, meta fields, dates, store links, categories and tags.
Related itemsRelated posts and related products.
CommentsWith their reply threads. A Magefan comment is approved when its status is approved, otherwise pending.
RedirectsPosts, categories, tags and authors, the feed, and the paged list pages.

A post that is active in Magefan and dated now or earlier becomes Published. An active post dated in the future becomes Scheduled. An inactive post becomes Disabled.

Featured images are copied from pub/media when Magefan stored them there, or downloaded when Magefan kept an address.

The importer does not guess Magefan's default address layout. It reads Magefan's own permalink settings straight from core_config_data at every scope that has them: the blog route, the layout (default or short), and for posts, categories, tags and authors the path segment, the suffix, and whether the category is part of the address. It uses Magefan's defaults only for what nobody saved. These settings are read from the database, so they work after Magefan has been disabled or removed.

Each old address gets a 301 to the new one. On this domain they are URL rewrites. If you set Old base URL to another domain, they go into the redirect map instead.

The notice about disabling Magefan#

When Magefan Blog is enabled in Magento, the screen shows: "Disable Magefan Blog before going live: while it is enabled its router may answer the old addresses before Magento's rewrites." The notice appears under Import from when you choose Magefan, and on the report of a Magefan job. It is only a reminder. The import itself runs either way.

It appears only when the Magefan module is enabled. If Magefan is not installed or is disabled, you will not see it.

Why it matters: while Magefan's router is active, a request for an old address can be answered by Magefan before Magento looks at the 301 rewrites made by the import, so the redirects would not fire. Disable Magefan before the new blog goes live, and clear the page cache.

After the import#

  1. Read the job report.
  2. Run bin/magento indexer:reindex coullworks_blog_post and bin/magento cache:flush.
  3. Check that an old Magefan address, a post, a category, a tag and an author, answers with a 301 to the new address.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.