Adding a database to wp

I want to create a page in a wp theme where the user can enter time tracking info.
so for example jim whatever can go to the page and a certain week he can put in a four hour lunch, two hour walk and two hours of work.
is there a bkm for that?
I know i create a db to install wp. go to the same db & add a table for that?
Any advice please?
thx
D

You could, but WordPress already features a Custom Post Type API for things just like that so you don’t have to mess with the database directly. This involves registering a new post type, adding some custom fields to it (or using the awesome Advanced Custom Fields so you don’t even need to code them), and then just displaying the field values using get_post_meta

That should get you started. Advanced Custom Fields is pretty great as you can build complex forms (or just getting user data in general) without coding.

Thank you will look into it.
& you feel that it would also work for a large db where over 100 people would log in their activity every week?
I am still trying to figure out how to organize it

That is a very small database. If it were millions of people then it would be getting toward large.

That is a good point flegall but i mean large for custom fields. I have worked a bit with custom fields but normally not more than three or four.
D

ok so downloaded acf. & going through a vid tutorial on it. thanks for the intro to it.
seems very complex.
Not even quite sure yet how i’d set up what i was thinking of.
If you have any advice on how to set up such form on it, or a tutorial on it please let me know
thx
D

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.