Custom Table in WP DB
-
Ok, so I created a page in which users can create routines. Since that will generate a lot of data and I want to have a better control of that, I decided to create a custom table in my WP DB.
The way I did this was based on a tutorial I found online: through phpMyAdmin. I simply opened the database and created the new table.
After that, I tried multiple ways to add data through my form, but that did not work. I even tried reusing some code that I had (and I know it works) but nothing.
Since adding data was not working, I decided to add data manually through phpMyAdmin, and then retrieve it. That didn’t work either.
Then, for testing purpose, I installed a few of those plugins that allow you to see your DB Tables on the admin dashboard on WP. For my surprise, neither of the plugins listed my custom table.
Even tho I can see it when I log in to phpMyAdmin, it’s like WP has no idea it exist and I have no way of accessing it.
Does anybody know what I have to do to have access to that table? Or if I should be creating it differently?
- The topic ‘Custom Table in WP DB’ is closed to new replies.