admin管理员组

文章数量:1410705

I want to build a webapp using wordpress to manage the fornt-end templating and data input. the app will display a wizard, a map to locate the user and a for to insert some information about the location. I will also add a search form that will look from the data inserted by users and will display the results if found. My question is, how I can save some data to the wordpress database, is there any specific function to let wordpress manage the form inputs? I need to create a separate database table or I can rely on the existing wordpress database tables structure? Can anyone point me into the right direction? I don't have any code sample at the moment, this because I want to understand first how to proceed with the custom form that will be showed to the user to collect the data. Thank you.

I want to build a webapp using wordpress to manage the fornt-end templating and data input. the app will display a wizard, a map to locate the user and a for to insert some information about the location. I will also add a search form that will look from the data inserted by users and will display the results if found. My question is, how I can save some data to the wordpress database, is there any specific function to let wordpress manage the form inputs? I need to create a separate database table or I can rely on the existing wordpress database tables structure? Can anyone point me into the right direction? I don't have any code sample at the moment, this because I want to understand first how to proceed with the custom form that will be showed to the user to collect the data. Thank you.

Share Improve this question edited Dec 30, 2019 at 20:19 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Dec 30, 2019 at 18:10 sialfasialfa 32910 silver badges29 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It's totally depends on your sow. You can choose custom table to insert custom data and that's need so much code like mysql query to insert data and fetching data using the same approach. If you feel comfortable with those approach you can look for wordpress WPDB.

But to me if you want to build a system which store data from the custom form and stores on the table and display on the wordpress admin panel as well then you might need to go with wordpress default conventional tables. By using custom post type. In this way you can easily display the stored data in the admin dashboard as well as admin can easily change , delete it. And that's a default features.

本文标签: Save and retrive data from a custom form to database