626 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says

In the update please make clear if we are allowed to create database tables to use with the theme and if functionality like the slideshow management should be moved to a plugin.

Ofcourse you are allowed to create database tables. WordPress offers that option and MANY plugins use it. So no worries for that to not to be allowed.

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says


In the update please make clear if we are allowed to create database tables to use with the theme and if functionality like the slideshow management should be moved to a plugin.
Ofcourse you are allowed to create database tables. WordPress offers that option and MANY plugins use it. So no worries for that to not to be allowed.

Yea, but – “The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that needs to be used instead. “

186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
Artillegence says



In the update please make clear if we are allowed to create database tables to use with the theme and if functionality like the slideshow management should be moved to a plugin.
Ofcourse you are allowed to create database tables. WordPress offers that option and MANY plugins use it. So no worries for that to not to be allowed.
Yea, but – “The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that needs to be used instead. ”

I think they meant not to change the values of default wp tables.

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says




In the update please make clear if we are allowed to create database tables to use with the theme and if functionality like the slideshow management should be moved to a plugin.
Ofcourse you are allowed to create database tables. WordPress offers that option and MANY plugins use it. So no worries for that to not to be allowed.
Yea, but – “The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that needs to be used instead. ”
I think they meant not to change the values of default wp tables.

That is not clear to me and db tables are the core of the themes we have.

626 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says



In the update please make clear if we are allowed to create database tables to use with the theme and if functionality like the slideshow management should be moved to a plugin.
Ofcourse you are allowed to create database tables. WordPress offers that option and MANY plugins use it. So no worries for that to not to be allowed.
Yea, but – “The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that needs to be used instead. ”

You need to properly use the WPDB class and functions to access and alter your own database tables.

Don’t create a separate connection and mysql queries without using WPDB where possible.

see http://codex.wordpress.org/Class_Reference/wpdb

954 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Won a Most Wanted contest
+3 more
aleluja says

It’s probably about not using mysql queries if you have built in function that does the same thing instead.

186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
Artillegence says

@Duotive I am referring to the core wp tables like wp_posts. There shouldn’t be any problems with tables created from themes.

366 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+5 more
Japh Envato team says

Yea, but – “The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that needs to be used instead. ”

So what we meant by that requirement, was that you shouldn’t access the database directly using SQL queries or especially creating your database connection, when there is already a WordPress built-in function for what you’re trying to accomplish.

Having said that…


In the update please make clear if we are allowed to create database tables to use with the theme.

As this isn’t something covered earlier in the thread, can you please clarify for me why a theme would need to create a custom database table?

186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
Artillegence says


Yea, but – “The database shouldn’t be accessed or modified directly. If there is a defined function that can get the data you need, that needs to be used instead. ”

So what we meant by that requirement, was that you shouldn’t access the database directly using SQL queries or especially creating your database connection, when there is already a WordPress built-in function for what you’re trying to accomplish.

Having said that…


In the update please make clear if we are allowed to create database tables to use with the theme.
As this isn’t something covered earlier in the thread, can you please clarify for me why a theme would need to create a custom database table?

It is mainly used for sliders and page builders .

366 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+5 more
Japh Envato team says

It is mainly used for sliders and page builders .

Ok, that makes sense. I can see why page builders might need this. Sliders though, I’m not sure why you wouldn’t just use a custom post type?

by
by
by
by
by
by