Sharing some tables between 2 different websites based on the same database
-
I have 2 different websites installed on the same database. The 2 websites are sharing the users tables, but I want them to share the posts tables too. I tried to do it by editing wp-db.php. After this code:
foreach ( $this->tables( 'global' ) as $table => $prefixed_table ) $this->$table = $prefixed_table;
I added this code:
$this->posts = 'wp_posts'; $this->postmeta = 'wp_postmeta';
But it doesn’t seems to work. How can I make the 2 websites use the same posts and postmeta tables?
Thank you!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Sharing some tables between 2 different websites based on the same database’ is closed to new replies.