[wp-hackers] repeating fields in usermeta?

SoJ Web sojweb at indiana.edu
Thu Apr 16 12:56:16 GMT 2009


Would it not be possible to store the e-mail addresses and phone  
numbers as serialized arrays under one meta key?


-Jeff

On Apr 16, 2009, at 8:51 AM, Casey Bisson wrote:

>
> An application I'm working on needs to store an arbitrary number of  
> email addresses and phone numbers per user. The wp_users table  
> obviously isn't the place, but the wp_usermeta table might not be  
> either. The get_ and update_usermeta functions aren't built for it,  
> anyway.
>
> The various postmeta functions are very smart about handling  
> multiple entries of the same meta_key per post, but not the usermeta  
> functions. Is that by design?
>
> --Casey
>
> http://maisonbisson.com/
> http://about.scriblio.net/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list