I had a look in series-utility.php and it seems like adding 'archive' or _whatever_ was a design decision on your part, not a side effect. Is that the case?
On lines 109 and 396 you include $wp_rewrite->front, $front is 'archive' in my case, if I go back to a standard permalink structure (ex: /%year%/%monthnum%/%postname%/) then $front is empty.
So I'm wondering if all it takes to make the plugin do what I'd like it to do is drop the $wp_rewrite->front and replace it with a /. Patch:
--- series-utility.php 2009-10-19 10:59:48.000000000 -0400
+++ new-series-utility.php 2009-10-19 11:01:39.000000000 -0400
@@ -106,7 +106,8 @@
$wp_rewrite->add_rewrite_tag($series_token, '(.+)', SERIES_QUERYVAR . '=');
//without trailing slash
- $series_structure = $wp_rewrite->front . SERIES_URL . "/$series_token";
+// $series_structure = $wp_rewrite->front . SERIES_URL . "/$series_token";
+ $series_strucutre = '/' . SERIES_URL . "/$series_token";
$rewrite = $wp_rewrite->generate_rewrite_rules($series_structure);
return ( $rewrite + $rules );
@@ -393,7 +394,8 @@
}
$series_token = '%' . SERIES_QUERYVAR . '%';
- $series_structure = $wp_rewrite->front . SERIES_URL . "/$series_token";
+// $series_structure = $wp_rewrite->front . SERIES_URL . "/$series_token";
+ $series_structure = '/' . SERIES_URL . "/$series_token";
return $series_structure;
}
Here's a link to a nicer version of the patch: http://snipt.org/oul
And the function reference on $front: http://codex.wordpress.org/index.php?title=Function_Reference/WP_Rewrite
I really have no idea how your plugin works so any input you can provide on this patch would be much appreciated.