• Hello all! I have a client who wants to have two sites and two different themes but with the same content. It may sound weird, but he has a good reason for it which I won’t get in to for time’s sake… I love WP and I would love to offer it as a solution but I can’t find anyone else who’s tried this – or maybe someone here can link me to it (pretty please! i found a bunch of “multisite” stuff with a bunch of broken links) – or just tell me if it can be done, what needs to happen?

    Thanks a bunch!!

Viewing 3 replies - 16 through 18 (of 18 total)
  • Same need here.
    I think I’m goin to hardcode themes’ and URLs’ settings.
    So WP will also not do a query to the db each time.

    I’ve done this before, having 6 websites shoot out content from the same database.

    It’s easy enough to do. Upload WP into both directories. Make sure they have the identical wp-config.php file.

    In the second sites directory do the following:
    In the wp-settings.php file change the options database value to something like this:

    // Table names
    $wpdb->posts = $table_prefix . 'posts';
    $wpdb->users = $table_prefix . 'users';
    $wpdb->categories = $table_prefix . 'categories';
    $wpdb->post2cat = $table_prefix . 'post2cat';
    $wpdb->comments = $table_prefix . 'comments';
    $wpdb->links = $table_prefix . 'links';
    $wpdb->linkcategories = $table_prefix . 'linkcategories';
    $wpdb->options = 'YOURNEWPREFIX_options';
    $wpdb->postmeta = $table_prefix . 'postmeta';
    $wpdb->usermeta = $table_prefix . 'usermeta';

    $wpdb->prefix = $table_prefix;

    See how I’ve removed $table_prefix . in the options line?
    Instead of YOURNEWPREFIX put something like ‘site2’ or whatever you want.

    Then, in PHPmyAdmin duplicate the wp_options table, and rename one of the them to be YOURNEWPREFIX_options, so if you chose ‘site2’, it would be ‘site2_options’.

    Bingo. Edit the information in the ‘site2_options’ table to refelct the correct information for your second site and you will be on your way.

    Mylagoon….thanks for the post. I was looking for that exact solution.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Two Sites, Two Themes, One Database (Same Content)’ is closed to new replies.