wp2static icon indicating copy to clipboard operation
wp2static copied to clipboard

WPCF7 contact forms got detected

Open swtrse opened this issue 3 years ago • 1 comments

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.

swtrse avatar Mar 15 '21 09:03 swtrse

DetectCustomPostTypeURLs could also be affected.

swtrse avatar Mar 15 '21 09:03 swtrse