I’m from the World of Django, where CRUD is King, so I had a similar question. The best answer I’ve found so far is Pods and the associated Pods UI. Unlike “Custom Posts”, which are kind of weird once you take a look under the hood, Pods actually creates real tables with real fields. Furthermore, you can crate relations! What a concept! Try that with Custom Fields. I haven’t done this for a user-facing page yet, but it makes for a very nice admin-facing input form.
Update in response to comment:
WP doesn’t really have an ORM to speak of. It has meta
tables (wp_usermeta
, wp_postmeta
, and wp_commentmeta
) to store “extra” information in (this is where new fields are stored for Custom Post Types), but there is none of the very nice lazy-dereferencing you have in a proper ORM.
Although relationships (foreign key, one-to-one, and many-to-many) are not natively supported by WP, there are a handful of plugins that address this issue and one of them that may make this situation palatable for you. I haven’t used any of them (yet) so I can’t speak for their relative strengths and weaknesses.
- http://wordpress.org/extend/plugins/posts-to-posts/ This plugin is by scribu, one of the WP core developers. I don’t if that makes it better, but it’s a data point.
- http://wordpress.org/extend/plugins/relation-post-types/
- http://wordpress.org/extend/plugins/custom-post-relationships/