[wp-hackers] Creating / Inserting into Table named after WP Username

Ryan McCue lists at rotorised.com
Sun Aug 25 05:59:02 UTC 2013


Gregory Lancaster wrote:
> The idea is to create a profile page where users can store more data than
> they can normally.  Upload more than one picture etc.  If there is a more
> intelligent way to do this PLEASE share!  The user_meta is limited though,
> thats why I opted to make my own db.

You can store arrays or objects in the meta fields, which is the
preferred way to handle something like this. Creating extra tables is
not the correct way to do it.

(Internally, these are run through serialize(), then unserialize() on
access.)

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


More information about the wp-hackers mailing list