[wp-hackers] Community conventions for custom post types?

Otto otto at ottodestruct.com
Sat Aug 4 14:24:01 UTC 2012


On Sat, Aug 4, 2012 at 6:17 AM,  <photofantaisie at gmail.com> wrote:
> However, what are we really talking about here? Off the top of my head, the
> main areas where one would like to see consistency are in naming
> conventions, eg post_type 'restaurant', rather than 'restaurants', for
> example, so that template naming is predictable, and rewrite rules. So, one
> convention could be that, like 'post' and 'page', the CPT registered name
> must be singular. But once you get beyond this, I'm not sure much can be
> standardised. For example, I would not support a convention that says that
> 'restaurant' must be non-hierarchical. In my use case, I may need
> 'restaurant' to be hierarchical. (Note: I hope I'm not misunderstanding the
> kind of conventions that people are thinking about.)

Think about metadata and the formats therein. A restaurant may have
odd opening and closing hours, and storing that data in a sane format
that was the same across plugins/themes might be useful.

-Otto


More information about the wp-hackers mailing list