[wp-hackers] Direction for custom taxonomy/post types

scribu mail at scribu.net
Mon Oct 18 20:15:31 UTC 2010


On Mon, Oct 18, 2010 at 10:16 PM, Joshua Sibelman <joshua.sibelman at gmail.com
> wrote:

> The reason I was thinking a custom plugin was because that seems to be a
> good way to hook into WP actions, while offering the ability to define
> custom Admin panels for my client to be able to manage all this content.
> Where the idea of the plugin deters me is that I'd love to be able to use
> things that come pre-built with the existing WP post functionality like
> images, date sorting, etc.
>

With a custom post type, you can replace none, some or all of the elements
that come with the default post editing admin panel, so creating your own
data type just for this sounds like reinventing the wheel.See the 'supports'
and 'register_meta_box_cb' arguments for register_post_type():
http://codex.wordpress.org/Function_Reference/register_post_type

Also, note that you can use hooks just as well directly from the theme.

The tricky part would be connecting songs to albums. I have a plugin for
that; it's called Posts 2 Posts <http://scribu.net/wordpress/posts-to-posts>
.


More information about the wp-hackers mailing list