• I have a theme that I am uploading to wp themes. However I cannot figure out how to get our theme to generate its own sql prefix and url.

    Currently users have to manually edit the sql prefix.

    I know there is an automated process thay accures during install, but i cant seem to get it to work.

    Any help is greatly appreciated.

Viewing 1 replies (of 1 total)
  • Do you mean that in your code you are querying the database using the wp_ prefix? If you’re querying the database in a theme or plugin you should be using $wpdb and use $wpdb->prefix to get the user’s database prefix.

Viewing 1 replies (of 1 total)

The topic ‘Uploading theme with sql help.’ is closed to new replies.