Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Importing content from flat files?

admin first-time

Started by Gregory Heller 1 year ago · 3 replies · 118 views
1 year ago

I have a broken wordpress site I am considering moving to Grav. I've looked over the threads here about migrating, and none provide a path forward for me because my site is currently offline and I do not want to invest in diagnosing and fixing the problem.

I'm considering migrating my "posts" table to flat files with markdown using ChatGPT, and then importing the flat files to Grav.

Two questions:

  1. Is there a "template" for Grav Flat files?
  2. is there a plugin or script for importing flat files to grav?
1 year ago

Do you have access to an xml file of your wordpress post or just the database ?

I used this https://www.rafspiny.eu/blog/wordpress-migration-to-grav-cms to get my xml file to converted to .md

Then used a text editor to mass edit the .md files, had to remove some html and edit urls for images/posts etc. Find and replace is your friend.

I didn't find a tool that could look into the database and pull the post out and save as .md, But even if there's is one you still have to edit the posts/files

1 year ago

I was able to get my website back up and running. So I think I can now use a plugin if I'm going to migrate it.

1 year ago

Hello,
I would suggest migrating to Grav now that you can, do not wait until the next setback with WP.
Regards

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago