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

Mike Schinkel mikeschinkel at newclarity.net
Sun Apr 18 10:20:00 UTC 2010


I get a 404 error on the "about" page.

-Mike

On Apr 18, 2010, at 6:11 AM, scribu wrote:

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list