Link to home
Start Free TrialLog in
Avatar of vfleary
vfleary

asked on

Two Wordpress Installs - One Database

Hello -

I have 2 Wordpress Installs on the same server with two separate urls pointing to each install -  the only difference between the installs is the theme (branding for two separate stations).  But the content should be the same.  It's becoming intensely arduous to have to try to update them both individually.  Is there a way that they could share posts so that if i update posts on one, it reflects on the other?

http://www.wblsblackhistory.com
http://www.wlibblackhistory.com

Thank you for any help you can provide and if you have any other questions I'm more than willing to answer.
Avatar of Lukasz Chmielewski
Lukasz Chmielewski
Flag of Poland image

How about a separate theme for each one. This seems to be the easiest way.
One installation, two designs, the same database.
ASKER CERTIFIED SOLUTION
Avatar of jeremyjared74
jeremyjared74
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vfleary
vfleary

ASKER

@ Roads_Roads - not sure how I would have the one installation have 2 designs and two separate URLS pointing to each of them.  So you're kind of out of my league w/o more explanation to that.

@jeremyjared74  I'm going to give that a try - but you're saying that every time I make a change I'll have to export from one and import into another?  Just making sure I understand.
No need to be rude, I was just trying to help. I must have misunderstood the question, two separate folders in the same server ? That is not a standard procedure, I think it is possible to detect the http referer and go to the proper page setting the theme for it automaticaly.
I'll try not to play in your league again.
Yes it would require exporting and importing the XML files when changes are made.

Are you making frequent changes? The process is pretty simple and shouldn't take more than 3-4 minutes to complete. If you are making changes frequently and this solution isn't acceptable, maybe there is a way to set up an auto import of the posts/pages.

If you decide to continue searching for an automated procedure for importing, can you give a few more details? Are you going to be importing Media, or just posts, or posts and pages, or all of the above?
Avatar of vfleary

ASKER

@Roads - sorry i touched a sensitive nerve on you but I was saying that you were talking over my head... like... I am the one who didn't know enough to understand your suggestion and I was asking for a little more detail.  No tone in text.  I'm positive you have your expert status for a reason - I was just saying that I couldn't understand how to implement what you were suggesting.  Thank you.

@Jeremy - I tried this and for now? this works wonders.  Because I was really copying and pasting *headache*  I think I can use this.  Going forward if you're up to the challenge - I really  just want to import posts with images and feature images.  Everything else would be embeded - like youtube links and the like.  No real media native to wp that I'll be using for this one.  Thank you!!!
Avatar of vfleary

ASKER

Very helpful, extremely quick and descriptive.  It's not an "automated" solution but it works great for the time being
Avatar of Jason C. Levine
Hi vfleary,

Even though this is closed, I have a suggestion:

What you describe is difficult to accomplish because of the way WordPress installs.  The URL of the site becomes part and parcel of the database, so merely pointing both config files to the same database wouldn't generate the expected results...images and links would go to whichever URL is defined in the config.

I can think of a few possible solutions, all a little tricky.

1) It might be possible to synchronize the content tables from one WP installation to another or do it with federated tables for the content stuff (posts, comments, postmeta, etc)/

2) You could take the RSS feed from Site A and use it to generate copies of the content in Site B via a plugin.

3) You might want to explore resetting the sites in WP Multisite config.  By running it that way you get more ability to control content for both sites from one Dashboard and there are plugins specific to WPMU that will help with this.