Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 451
  • Last Modified:

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.
0
vfleary
Asked:
vfleary
  • 3
  • 2
  • 2
  • +1
1 Solution
 
Lukasz ChmielewskiCommented:
How about a separate theme for each one. This seems to be the easiest way.
One installation, two designs, the same database.
0
 
jeremyjared74Commented:
The easiest way would be to use the WordPress export option to export the pages, posts, media, comments, or whatever else you need to export. WordPress gives you the option to export you data with the following options:
By Using Start Date
By Using End Date
By Author
Categories: Individual cats or all cats
Content Types: Pages or Posts or both
Statuses: Published, Scheduled, Draft Pending or All.

You can export all of the above or select the ones you want. You can then go to the other installation to import the XML file. You then have the option to upload all the data, including downloading media or choose not to.

From the left side options menu in WP-Admin select Tools>Export. You will be prompted to download the Export plug-in. Just install it and follow the directions.
0
 
vflearyAuthor Commented:
@ 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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Lukasz ChmielewskiCommented:
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.
0
 
jeremyjared74Commented:
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?
0
 
vflearyAuthor Commented:
@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!!!
0
 
vflearyAuthor Commented:
Very helpful, extremely quick and descriptive.  It's not an "automated" solution but it works great for the time being
0
 
Jason C. LevineNo oneCommented:
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.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now