Site icon Hip-Hop Website Design and Development

How to access WordPress functions outside WordPress with 2 different WordPress installations?

I want to access WordPress functions from outside WordPress. I have included file wp-load.php in my non-WordPress code.

It is working fine for a single WordPress install, but in my project I have two different WordPress installations – one for the blog and one for resource.

When I try to insert a user in the resource install, it uses the blog install’s database because the blog install’s wp-load.php is loaded first. Therefore, I am unable to insert users in blog.

Can anyone please tell me how to load both WordPress installations, one by one?

Any help would be appreciated.