PurabTech is technical blog for Programmer and Coders
How to create or add new tables using wordpress theme
With custom professional theme you need to add the custom table in wordpress database, Using this code you can, add new tables using wordpress theme
add new tables using wordpress theme
If you want to add one more table to wordpress database you need to just use the following code.
Open the functions.php file and copy paste the code.
[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
I suggest using CREATE TABLE IF NOT EXISTS instead of querying twice.