WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After taking some online tutorials I am willing to create my own custom theme for my myself. This is going to be an online Contact Lense store! So far I have learned how to generate and use Custom Post Types, Custom Taxonamyies, Metaboxes , and Option pages.but there is still one confusing part left for me(hopefully not more! :-))
I need to get some user inputs through HTML Select Options like following image to finalize the users orders: enter image description here

Now my questions are:
1- Do I have to create some thing lik Metaboxes to manipulate these data from users?
2- can I handle these kind of data through simple Form ans Post function in PHP? If so where should I store these data? Do I have to create a table on my own to handle these things?
I really appreciate your time regrading this post,

share|improve this question
Where will this form reside on your web site? If in the admin (which page)? Adding field to the User Profile admin page is pretty easy and does not require much work. Here is a one guide I found on Google. – Charles Clarkson Nov 22 '13 at 1:54
Hi Charles, thanks for your comment and sorry for concision of using the word " User" instead of Visitor! Actually the form is going to be in front page where the visitors are going to order contact lenses so it is not in admin page for sure, once again thanks – Behseini Nov 22 '13 at 3:50
I assume that the question is getting downvoted because it is very broad. You can do anything in many ways. If you want to get quality answers you should try to be more specific, hopefully show what you have tried. – Mark Kaplun Nov 22 '13 at 8:26
up vote 1 down vote accepted

1 - Do I have to create something like Metaboxes to manipulate these data from users?

The add_meta_box() WordPress function is used on Admin pages, not for front pages. If that is not the "Metaboxes" you are referring to, you will have to explain the term.

2 - Can I handle these kind of data through simple Form and Post function in PHP?

Yes. For customer web sites, I often use the Gravity Forms plugin. Development time is about the same, but I don't write forms often enough to be certain they are secure. Someone from the future can probably change the form easier too.

If so, where should I store these data? Do I have to create a table on my own to handle these things?

Where you store the data is up to you. What do you want to do with the data after you receive it? Does that require the data be read in a certain format? We would need a lot more details to help you determine that and the question would probably end up being off topic for WPSE.

The database is an often used option, but there is no built-in table to store data on customers. You would have to add that table (or those tables). WordPress provides the wpdb object to interface with the WordPress database to create tables and query your own tables.

If you are using an E-commerce plugin or shopping cart to accept payments, it may have a user registration system and the ability to add orders to customers without fussing with the database directly. (Note, I do not know of or recommend any particular e-commerce plugin. I am speaking generally.)

share|improve this answer
Charles, I really appriciate your time and perfect explanation. – Behseini Nov 23 '13 at 5:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.