Implementing Post Sub-Types

View: New views
2 Messages — Rating Filter:   Alert me  

Implementing Post Sub-Types

by Ryan McCue-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a theme/plugin in development that is going to implement
different types of posts. These will still be posts, as such, but will
be styled and created specially.

In order to maximize the compatibility with existing posts (and if the
user ever changes the theme in future), I want to keep these as posts,
rather than using custom post types, but I want to be able to assign a
special "sub-type" to be able to handle these differently.

So, hackers, what do you think the best implementation for this is?

I've worked with using categories before and hiding them in the
interface (frankly, pain in the ass). I'm thinking the best solution for
this will be post meta.

Thanks,

--
Ryan McCue
<http://ryanmccue.info/>

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Implementing Post Sub-Types

by Peter Westwood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 1 Nov 2009, at 12:48, Ryan McCue wrote:

> I have a theme/plugin in development that is going to implement
> different types of posts. These will still be posts, as such, but will
> be styled and created specially.
>
> In order to maximize the compatibility with existing posts (and if the
> user ever changes the theme in future), I want to keep these as posts,
> rather than using custom post types, but I want to be able to assign a
> special "sub-type" to be able to handle these differently.
>
> So, hackers, what do you think the best implementation for this is?
>
> I've worked with using categories before and hiding them in the
> interface (frankly, pain in the ass). I'm thinking the best solution  
> for
> this will be post meta.

Either post meta as you suggest or a custom taxonomy would be the best  
solutions IMHO.
--
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers