[wp-hackers] Post/Page "Types"?

DD32 wordpress at dd32.id.au
Sat Nov 1 11:19:08 GMT 2008

On Sat, 01 Nov 2008 22:10:11 +1100, Mike Schinkel <mikeschinkel at gmail.com>  
> Currently I think that query_posts() supports a "post_type" query  
> parameter,
> right? What else would be needed there?

> That said, am I really the first to broach this issue?

Theres a few plugins which use custom post_types i think, Cant think of  
one off the top of my head though.

get_posts() / WP_Query supports the 'post_type' parameter, Thats what  
differentiates it between using post/page/attachment/revision post_type's

Since the Taxonomy system is based on wp_posts.ID there shouldnt need to  
be any changes there, But if you define a new taxonomy (rather than  
throwing them in with the posts cat and tags) you'll probably need to  
define a few new template functions which duplicate WP code..

But its all possible without too much hard effort, If you're aware of the  
Internal API thats used. The PHPDoc in 2.7 should really help that..

More information about the wp-hackers mailing list