It may; the problem is the possibility of field name collision; you introduce a field called xyz
, and a year down the road, a field with that name may appear in the next version of WordPress, so the upgrade will either fail on your installation or it will erase your data or WordPress will work incorrectly because of unexpected data in that field.
So what you may want to do is to create a new table, call it something like wp_users_extra
and keep your data in it.
Hi Wolfull and NC@WP.
I stumbled upon your posts from Google. I am hoping you could provide some guidance.
Here is what I am trying to do:
1) Add a new table to my WP database. I got this part down okay.
2) Add a few fields to said table. I got this part down okay.
3) I need to add the ability to add that field data to my WP templates. How do I call that data?
I was going to simply add fields to the wp_user table, but after reading NC@WP’s response, I decided to create a new table.
Any guidance would be much appreciated.
MichaelH. That’s great. I will look at the plug-in. Let’s say that I get the table created and data stored, how do I “call” that data? Is there a preferred method? I saw the post located at, http://codex.wordpress.org/wpdb. I’m still reading through it. Am I looking in the right area?
Thanks.
Thanks MichaelH. I will look at the documentation.
Thanks also to NC@WP (above) who provided this link which further clarifies the ‘wpdb Class’, http://codex.wordpress.org/Function_Reference/wpdb_Class.
my problem was sloved by this link
Why not look at a plugin such as http://www.cimatti.it/blog/cimy-wordpress-plugins/cimy-user-extra-fields/
but there is one problem i want to add a date of birth filed in registration form and . can any one tell me how to validate this filed.
thanks in advance….