diff --git a/wp-permastructure.php b/wp-permastructure.php index 1eb71cd..34fde53 100644 --- a/wp-permastructure.php +++ b/wp-permastructure.php @@ -337,7 +337,7 @@ public function parse_permalinks( $post_link, $post, $leavename, $sample = false $permalink = home_url( str_replace($rewritecode, $rewritereplace, $permalink) ); $permalink = user_trailingslashit($permalink, 'single'); } else { // if they're not using the fancy permalink option - $permalink = home_url('?p=' . $post->ID); + $permalink = home_url('?post_type='.$post->post_type.'&p=' . $post->ID); } return $permalink;