[wp-hackers] Idea: Widgets as custom post types
austin at ilfilosofo.com
Tue Mar 2 20:13:19 UTC 2010
On Tue, Mar 2, 2010 at 2:07 PM, scribu <scribu at gmail.com> wrote:
> Currently, each widget type has a an associated row in the wp_options table,
> where all instances of itself are stored.
> Taking example from the nav menus in WP 3.0, why not store each widget in
> the wp_posts table, with a post_type of 'widget' ?
I think it's a good idea, and the post db structure fits many widgets
too, since they often have titles and content. And I hate how easily
serialized data gets corrupted.
More information about the wp-hackers