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

scribu scribu at gmail.com
Sun Apr 18 10:11:43 UTC 2010


On Sun, Apr 18, 2010 at 1:04 PM, Mike Schinkel
<mikeschinkel at newclarity.net>wrote:

> 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?
>

How do you mean `it hides all the post_type="page"` ?


-- 
http://scribu.net


More information about the wp-hackers mailing list