612 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
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
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 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
  • Bought between 100 and 499 items
  • Contributed a Tutorial to a Tuts+ Site
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
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
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 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.

612 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
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

939 posts
  • Sold between 1 000 and 5 000 dollars
  • Most Wanted Bounty Winner
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Envato Studio (Microlancer) Beta Tester
  • Serbia
  • Exclusive Author
aleluja says

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

186 posts
  • Bought between 100 and 499 items
  • Contributed a Tutorial to a Tuts+ Site
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
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
  • Envato Staff
  • Australia
  • Has been a member for 5-6 years
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
Japh Staff 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
  • Bought between 100 and 499 items
  • Contributed a Tutorial to a Tuts+ Site
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
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
  • Envato Staff
  • Australia
  • Has been a member for 5-6 years
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
Japh Staff 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