Support » Plugin: WP2Static » Create only from a specific custom post type content

  • Resolved adrianpg


    Is it possible to generate static html from only a specific post type content?

    I pretend to automate a crawling cron task and I’d wish to generate only post_type ‘post’ content due I have other custom post types and pages and I don’t want them to be generated.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP2Static Team


    Good question, @adrianpg!

    I don’t think there’s an easy way in the current version, but will try to allow that in next one.

    Workaround for now, may be to exclude the URLs you don’t want in, not sure how many you’re dealing with though.

    Else, catch it after the crawling is done and before actual deployment. Depending on which deployment method you’re using, the method will vary.

    Is it more to speed up the export or to prevent the pages being public?

    You could possibly also set them as Draft status or such before you export, then set them back again. Manual and messy, but possible workaround.





    Thank you for the quick response!

    My current workaround is excluding almost all site urls but allowing the needed ones as you have commented.

    Setting them as draft before export is not a solution valid for my problematic, because it is a huge site and I would take more time doing it that what I spend excluding certain urls.

    Hope we can get this feature in a future version of this great plugin.

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.