Susan Williams
Susan Williams

Reputation: 317

How to keep two wordpress blogs under the same site?

I am working on a blog in the media front. I want to create two blogs under the same wordpress site in such a way that the session and the user base is common for the both and i even want to have the same url for both that is

www.example.com 

for both. So is there a possibility to do that and as of now i have created two separate blogs under the same database but the issue is the session is separate for both and even the user base and even the url changes. So can someone help out with this. All i need is a little guidance and i can build upon it.

thanks

Upvotes: 2

Views: 71

Answers (1)

Disk01
Disk01

Reputation: 357

If you want two WordPress blog and one database for the user. You need to add following code into your both wp_config.php

define(CUSTOM_USER_TABLE,'wp_users');
define(CUSTOM_USER_META_TABLE,'wp_usermeta');

Also you need to Replace the wp_ with the prefix to what you want. You may see https://wordpress.org/support/topic/two-blogs-working-from-one-user-database for more help.

Upvotes: 1

Related Questions