[wp-hackers] 'request' filter for adding custom post types to blog indexes
Krusty Ruffle
krustyruffle at rustykruffle.com
Wed Aug 11 21:55:19 UTC 2010
Thank you for the advice, it is greatly appreciated! I now feel that I have
at least a small grip on what I'm doing here and have something to play
around with for a couple days! :^)
On Wed, Aug 11, 2010 at 3:29 PM, scribu <scribu at gmail.com> wrote:
> Something like this:
>
> if ( isset ( $request['post_type'] ) :
> $request['post_type'] = (array) $request['post_type'];
> $request['post_type][] = 'my_post_type' ;
> else:
> $request['post_type'] = array ( 'post', 'my_post_type' ) ;
> endif;
>
> It really depends on what else you're doing. Best is to try it out, with
> lots of testing.
>
>
> --
> 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