Multiple Sites, Same Database, Different Options Table
-
I’ve done extensive searching, and I’ve seen people with similar threads, but everywhere I see someone asking the exact same question as myself, I don’t see a response, so I figured I would try again.
I have an existing site. I want to split out some subsites that utilize the same content, users, etc. The purpose of the subsites is to display just one category of content. Essentially I am segregating content types for better user and advertiser targeting. The master site will still exist, and pulls all categories together.
Here is the kicker though, each of these subdomains will use the essentially the same theme, but with different options. The different options are because the theme needs to display different categories of content. (Magazine style theme)
So I know I need subdomains, which I have setup. Each subdomain essentially contains the same information, theme files (which will be modified once I get this working) etc. The wp_config files all point back to the same database, because I want to share content. And that all works, I essentially have cloned my site to the subdomain. However the issue is I need a customize the options for each site, so I need to utilize different options tables for each site.
I don’t see anyplace where this is possible. I found the table array in wp-db.php, and modified the name of the options table there (var $tables = array), but when I do that, the site fails to install.
I’ve gone round and round with several plugins, and various ways of installing, but I can’t find anywhere which allows me to use a different options table. I’m by no means an expert, but I’m competent problem solver when it comes to working an issue like this. However I have apparently exhausted my capabilities at this point. Anyone have any experience, thoughts? Any help is greatly appreciated
- The topic ‘Multiple Sites, Same Database, Different Options Table’ is closed to new replies.