The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] 2 'blogs' - 1 database - common users (3 posts)

  1. jnewto
    Posted 7 years ago #

    Hi all. Basically what I am trying to do is have three separate blogs on the same overall site, which users will be have access to upon a single registration.

    First blog: Some users will be allowed to author posts on 1 blog (any user can comment)

    Second blog: Only the admin will be allowed to author on the second (any user can comment)

    I think this means I'll need to have both blogs utilizing the same database, but I'm not sure if that's possible.

    Thanks for help.

  2. Austin Matzko
    Posted 7 years ago #

    What you want to do is share the users database table, but use different table prefixes for 2 of the 3 blogs. So I'd recommend using the default table prefixes for one install and custom prefixes for the others.

    To change the tables' prefix, change the $table_prefix variable found in your wp-config.php file. Underneath that, for the two installs for which you're changing the prefix, define the custom users table so that it points to the shared users table:

    define('CUSTOM_USER_TABLE', 'wp_users');

  3. jnewto
    Posted 7 years ago #

    Ah, it's that simple! Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.