diff --git a/includes/class-static_press.php b/includes/class-static_press.php index 4f375ff..13314e6 100644 --- a/includes/class-static_press.php +++ b/includes/class-static_press.php @@ -727,6 +727,9 @@ private function single_url($url_type = 'single') { $permalink = get_permalink($post->ID); if (is_wp_error($permalink)) continue; + if (preg_match('/.*\.html\/.*/', $permalink, $m)) { + continue; + } $count = 1; if ( $splite = preg_split("##", $post->post_content) ) $count = count($splite);