[wp-hackers] Need Custom Post Type Rewrite Help, Please

Mike Schinkel mikeschinkel at newclarity.net
Sun Apr 18 10:04:15 UTC 2010


On Apr 18, 2010, at 5:59 AM, scribu wrote:

> $wp->add_query_var('financial-term');
> $wp_rewrite->add_rewrite_tag("%financialterm%", '([^/]+)',
> "financial-term=");
> $wp_rewrite->add_permastruct($tag, '/%financialterm%');

Thanks.  That seems to work but it hides all the post_type="page".  So add them explicitly with the code you had before since there will only ever be a few?

-Mike


More information about the wp-hackers mailing list