647 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
+1 more
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.

647 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
+1 more
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.

373 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Australia
+4 more
Japh 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 .

373 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Australia
+4 more
Japh 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?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by