wp2static
wp2static copied to clipboard
WPCF7 contact forms got detected
The problem here is that in DetectPostsPagionationURLs the post type "wpcf7_contact_form" is not excluded from the query. This results in URLs that does not exist on the site. For WPCF7 the solution would be to exclude wpcf7_contact_form just like nav_menu_item and revision. A more general approach would be so let configure an list of excluded post_types.
DetectCustomPostTypeURLs could also be affected.