How can I pull the posts of one blogger(written on his wordpress blog) to my site without installing the wordpress on my site? What are requirements and limitations of doing that?
问题:
回答1:
There are a couple ways to use wordpress as a CMS only, without actually using it as your site or to expose content for use on another site.
RSS feeds as noted in another answer is good for read-only access to posts. To interact with content you'll need another solution.
You can enable XML-RPC in wordpress and use a library like php xmlrpc to connect and pull post data. However, XML-RPC is limited out of the box and mostly geared towards publishing to wordpress, not pulling out stuff.
The most flexible solutions is a REST plugin for wordpress that expose your posts via restful API. Check out: http://wordpress.org/extend/plugins/json-api/
One limitation is you'll obvioiusly not have some of the wordpress-as-a-website-building-tool plugin functionality available on the non-wordpress site.
回答2:
If it's WordPress you could just use the RSS Feed to syndicate content to your site?
To grab the content you want - http://codex.wordpress.org/WordPress_Feeds
回答3:
I believe that the plugin Wp RSS Multi importer should do the trick. It pulls out RSS feeds from the blog you want to syndicate into your own blog. You can get the plugin here http://wordpress.org/plugins/wp-rss-multi-importer/. The problem could be if what you want is not a feed. I for example want content that looks like this http://bake.co.ke/pg/recent+blog+posts. I don't want to syndicate feeds but the real content from another website.