WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am managing a couple of WordPress sites, all hosted on the same VPS, and the client would like the homepage blogroll of Site A, that the own, to appear on Site B that the also own with the same Author attribution, preferably to link to the originating sites author as opposed to a duped author on Site B.

I was thinking of either querying the database on Site B with a replica query_posts() query however I am having trouble reverse engineering the query_posts() function.

Is there a way to do this for an 'external' site?

NB; sites are not multisite. I tried that but it all dropped off and a critical plugin we need is not compatible.

share|improve this question
up vote 0 down vote accepted

You have a couple of options here, but first let me advise you away from querying the database directly. If your sites are that closely related, then they should be in a Multisite network ...


On Site B, fetch the RSS of Site A and display the posts and author attributions there. You can find any number of RSS plugins that do this for you or just get you started.


Site B can also connect to Site A to fetch the latest posts using XML-RPC. You then have full access to data, including the most recent posts, as well as media, comments, etc.

share|improve this answer
How is XML-RPC used? Is it called like a function or similar? I can't make heads nor tails of the codex page you linked to? – Joshua Feb 10 '12 at 0:02
Sorry, linked to the wrong Codex page. That was a full description of the API. If you want, I've added a tutorial on my own site that shows how to actually use it. – EAMann Feb 10 '12 at 0:20
sweet. I'll have a look at that now. Also just a friendly bug-spot; in the bottom code blocks it has $client->query instead of $client->query. – Joshua Feb 10 '12 at 0:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.