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

巧了我就是萌 提交于 2019-12-04 17:36:50

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.

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

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.

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