WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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 have a situation where i need to display posts from a specific category from another wordpress site into my wordpress site.

Both are my sites and i thought of creating a page specially for this in site A and calling them through iframe in site B.

I thought another way of fetching them feed.. But i dont know how to fetch feed contents from other wordpress and how to create a feed for a specific category.

share|improve this question
Are you talking about multisite environment or two seprate installs here? – Michal Mau Jun 3 '11 at 9:51
Two separate installs – Vijay Jun 3 '11 at 13:49
Check out this link for code samples to get post from WordPress to WordPress. wordpress.stackexchange.com/questions/38551/… – Nickiler Jan 16 '12 at 0:41
Content duplication is bad for SEO at least add the meta tag: seobythesea.com/2010/11/… – janw May 26 '12 at 8:28

Instead of parsing the RSS feed, you could query the second blog directly with the builtin XML-RPC webservices, described in this Question.

share|improve this answer
Actually in my case i didn't want to have posts on both wordpress database.. I just want to display one random post from a specific category from Site A. – Vijay Jun 3 '11 at 9:52
You don't have to "sync" the posts like discribed in the above question. But you could just query the second blog with XML-RPC. Use the XML-RPC client on site A, query site B and return your random post. – rofflox Jun 3 '11 at 10:00
Ok Thanks.. I'll try that out – Vijay Jun 3 '11 at 10:08

I think RSS is a great option here.

To get a feed for a specific category, you simply add /feed/ to the end of the URL (or if you don't use permalinks, add ?feed=rss2 or &feed=rss2).

@Nickiler linked to a great post on getting RSS content: Load custom post type in a different WordPress installation

share|improve this answer

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.