Support » Fixing WordPress » Need help displaying second wordpress content

  • Hi, I have been searching and hacking away at code but I cannot get this to work.

    I have 2 wordpress installations (both the same version).

    On installation one’s front page I would like to put the “latest 10” posts from installation two’s database.

    I can create a php script and it works on it’s own but when I include it into the front page of my installation one, it uses the wrong database.

    Is there a way to “switch” which database I am connected to on the fly and switch back? Actually it is even the same database just different prefixes for the 2 installations.

    Any help would be greatly appreciated — there are a few things I need to with this.

    1) Get the latest 10 posts title and permalink only
    2) Get the latest post excerpt and permalink and title.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Need help displaying second wordpress content’ is closed to new replies.