I have two totally separate WP websites setup. Different domains, different databases. I manage both of them and they are both hosted on a dedicated server. I am trying to include some basic content that requires just a tad more than an RSS feed. I need to pull data from SITE-1 and display it on SITE-2, using basic WP formatting from a loop. Everywhere I've looked makes it seem impossible. I've tried calling wp-load.php but can't get it to work, and am not sure if it is even the right way to go. I have access to both sites' root servers, and even the server root if necessary. Is there anyway to do this? Thanks!
|
Yeah
Another way is to use the HTTP api: Code in your first site, where you want to display the data:
Code in your second site, in the theme's functions.php (or create a plugin):
The 2nd method is easier and more flexible from the "formatting" perspective. For example here you could easily echo the post thumbnail as html, while using the database approach it would be very hard for you to get the link to the thumbnail image... |
|||||||||||
|
|
Hi @RodeoRamsey: I think your question is very similar to this question: Basically you just need to created the |
|||
|
|