how to pull posts from wordpress to other non-wordpress site on different hosting?

我的梦境 提交于 2019-12-06 11:18:41

问题


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.



来源:https://stackoverflow.com/questions/12589025/how-to-pull-posts-from-wordpress-to-other-non-wordpress-site-on-different-hostin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!