some-programs / exitwp

Exitwp is tool primarily aimed for making migration from one or more wordpress blogs to the jekyll blog engine as easy as possible.
686 stars 145 forks source link

Export custom post type? #72

Closed christopherisnow closed 6 years ago

christopherisnow commented 6 years ago

I'm trying to export a WP site with the Portfolio Press theme: https://wptheming.com/portfolio-press/. Most of my content is saved as the custom post type "portfolio". They appear in the .xml file after exporting from WP.

But exitwp.py does not output the portfolio posts in /build. There are several lines at the end of the report in the command line .Unknown item type :: portfolio

How do I include this custom post type in the output?

thomasf commented 6 years ago

You have to add code which converts the portfolio item type.

Like the one for page:

https://github.com/thomasf/exitwp/blob/master/exitwp.py#L311

christopherisnow commented 6 years ago

That solved it -- thanks very much!