683 posts
  • 4 Years of Membership
  • Author Level 5
  • Collector Level 2
  • Exclusive Author
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
  • 5 Years of Membership
  • Affiliate Level 5
  • Author Level 9
  • Bundle Boss
+8 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. “

191 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Author Level 8
  • Collector Level 4
+8 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
  • 5 Years of Membership
  • Affiliate Level 5
  • Author Level 9
  • Bundle Boss
+8 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.

683 posts
  • 4 Years of Membership
  • Author Level 5
  • Collector Level 2
  • Exclusive Author
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
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
  • Most Wanted Winner
+3 more
aleluja
says

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

191 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Author Level 8
  • Collector Level 4
+8 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.

378 posts WordPress Guy
  • Affiliate Level 1
  • Author Level 2
  • Collector Level 3
  • 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?

191 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Author Level 8
  • Collector Level 4
+8 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 .

378 posts WordPress Guy
  • Affiliate Level 1
  • Author Level 2
  • Collector Level 3
  • 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?

by
by
by
by
by
by