Forums

Two installations of wordpress 1 database, same posts (11 posts)

  1. narkiej
    Member
    Posted 1 year ago #

    I am building a new website and want to connect it to the current wp database so i can view all the same posts and make changes to them accordingly.

    I do not want to export import it needs to be live. is this possible? thank you in advance!

  2. narkiej
    Member
    Posted 1 year ago #

    Could someone let me know if this is possible please? Any links -> I can't find anything.

  3. akdonovan
    Member
    Posted 1 year ago #

    I've been googling this months! NO clues as yet, but it MUST be possible...

  4. kfallman
    Member
    Posted 1 year ago #

    is the database on same server as new site ? btw.. sounds strange you have to do it "live".. double work..

  5. akdonovan
    Member
    Posted 1 year ago #

    Yeah, it is.

    I know it sounds strange, but in this case it will be massively helpful!

    Cheers!

  6. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    I doubt this is possible. URL info is stored in the db, so if it is correct for one installation it will be incorrect for the other. You can probably kludge it & get a similar result by a different method by setting up a master installation & pull the content in as a feed into the other installation - in the same way that splogs are able to republish other peoples' content.

  7. aqee_se
    Member
    Posted 1 year ago #

    This might help you.
    Have a look here:
    http://codex.wordpress.org/Changing_The_Site_URL

  8. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    This might help you.
    Have a look here:
    http://codex.wordpress.org/Changing_The_Site_URL

    I can't see how that could help.

  9. nathan12343
    Member
    Posted 1 year ago #

    I can't think why you'd want to... but all I can think of is forcing one or other of the sites to accept it's URL regardless of what is in the database. Try this:

    define('WP_SITEURL', 'http://www.yoursecondurl.com/');
    define('WP_HOME', 'http://www.yoursecondurl.com ');

    obviously change the url details! First URL is where the wordpress files are stored.

    Paste it into the wp-config of the second site. When you change any of the posts from either site it will change in the database and therefore show in both sites. I have no idea how this would work if you want to use different plugins or activate a different theme because all of those settings obviously get stored in the same single database.

    Hope it helps!

  10. akdonovan
    Member
    Posted 1 year ago #

    Thanks gang!

    Nothing's worked yet, but one lives in hope...

    This would be useful in that we're building new version of an existing site.... the existing site has a TON of content (6 years worth), and the new site has a load of new features and ways of displaying that content.

    ANYWAY! We shall persevere. Any bright ideas appreciated.

    Cheers!

  11. aliblackwell
    Member
    Posted 12 months ago #

    Any luck with this? I'm in the same place. An import/export could work I suppose but it would be way easier to work with the live content...

    What do we reckon team? Doable?

    Ta

Topic Closed

This topic has been closed to new replies.

About this Topic