lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.07k stars 216 forks source link

Add option to write a JSON file mapping Wordpress IDs to relative Markdown file paths #97

Closed bbusschots closed 5 months ago

bbusschots commented 1 year ago

Add option --write-wp-id-file-map to enable outputting of a JSON data structure mapping WordPress post IDs to relative Markdown file paths to wp-id-file-map.json.

This may be a little too specific to my needs to get merged, but I need this file so I can auto-generate an NGINX config file to redirect old ?post=... URLs to the new static files, and others may need to do similarly create redirects from old Wordpress URLs to new static URLs.

lonekorean commented 5 months ago

Thank you @bbusschots, yeah this might be a bit niche, but I'll keep it in mind if I see more requests for such a thing. Closing for now.