I’m in the process of moving my Wordpress site to Ghost. I have a large number (1000’s) of edits to make to handle some shortcodes that are not supported in Ghost.
Is the most logical way to do this with a regex substitution on the JSON output from the Wordpress site? The regex gets really messy with all the escapes, but looks manageable. For each post it would involve removing the shortcodes and reinserting new HTML at the end of the post.
Alternatively, could I do a ‘local’ import, make edits via some SQL (coupled with some regex magic, easier to read as not escaped) on the sqlite3 database (presumably only the posts table?) and then re-export before importing directly to the final destination?
I’ve got basic but reasonable SQL and perl (yes, a bit old skool, but it works for me) coding so understand the mechanics of what to do, but I don’t know the easiest thing to apply these mechanics to.
With thanks
David
If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.
If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.
- What’s your URL? This is the easiest way for others to help you
- What version of Ghost are you using? If it’s not the latest, please update Ghost first before opening your topic
And
- How was Ghost installed and configured?
- What Node version, database, OS & browser are you using?
- What errors or information do you see in the console?
- What steps could someone else take to reproduce the issue you’re having?