• I was wondering if it would be possible to have several installations of WordPress on my site but you only need to register once, to the main site, in order to post and such on all.

    My site is https://www.think-theory.com, but we plan on having https://www.think-theory.com/gaming, https://www.think-theory.com/technology and so forth. On each of those sub pages, I would assume I just install WordPress (which isn’t a problem). I would like to make it so that you only have to register to WordPress on the main site and then you become a member of all the WordPress installations.

    Do you understand what I mean, and if so, is it possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • yes, you can do that.

    Using your example, Consider this scenario:

    Lets # each WP install:

    main = 1
    gaming = 2
    technology = 3

    each install will have their own prefix. the prefix is set inside each install’s wp-config.php:

    $table_prefix = '21_'; // example: 'wp_' or 'b2' or 'mylogin_'

    so lets do that:

    #1’s prefix can be main_
    #2’s prefix can be gaming_
    #3’s prefix can be tech_

    You can now install ALL three wordpress’ into the same database, however theyre all using different tables since they have different prefixes.

    Assuming you want #2 and #3 to use #1 user table you do this:

    Go into their wp-setting.php file and locate this line:

    $wpdb->users = $wpdb->prefix . 'users';

    and change that to read:

    $wpdb->users = 'main_' . 'users';

    You know have three installs that share ONLY 1 table : the user table.

    The content, etc.. is all seperate.

    It’s probably much simpler to use multiuser WP, but you asked if it was possible.

    The only glitch in the above scenario might be the cookies.

    Thread Starter mithrus

    (@mithrus)

    Thanks for the quick reply. Looks like it may work out. However, you mentioned the “multiuser WP,” what exactly is that?

    Thread Starter mithrus

    (@mithrus)

    Is there a way to install it without losing all of the posts and such I have right now?

    Thread Starter mithrus

    (@mithrus)

    When you say this part:

    $table_prefix = ’21_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’

    so lets do that:

    #1’s prefix can be main_
    #2’s prefix can be gaming_
    #3’s prefix can be tech_

    Am I supposed to change the part where it has the ’21_’; to ‘main_’; and then ‘gaming_’; and ‘tech_’; for each individual file? When I went to the files, where the 21 was, it had wp. I went to change it for the main one, but when I refreshed the site, it said that it didn’t look like I had WP installed. Then I quickly switched it back to wp and it’s fine again.

    I’m just a little confused.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Registering to several WordPress installations once’ is closed to new replies.