doutouhe5343 2012-09-25 18:32
浏览 50
已采纳

如何从wordpress上拉帖子到不同主机上的其他非wordpress网站?

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?

  • 写回答

3条回答 默认 最新

  • dongtuo0828 2012-09-25 18:38
    关注

    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条)

报告相同问题?

悬赏问题

  • ¥15 ats2837 spi2从机的代码
  • ¥200 wsl2 vllm qwen1.5部署问题
  • ¥100 有偿求数字经济对经贸的影响机制的一个数学模型,弄不出来已经快要碎掉了
  • ¥15 数学建模数学建模需要
  • ¥15 已知许多点位,想通过高斯分布来随机选择固定数量的点位怎么改
  • ¥20 nao机器人语音识别问题
  • ¥15 怎么生成确定数目的泊松点过程
  • ¥15 layui数据表格多次重载的数据覆盖问题
  • ¥15 python点云生成mesh精度不够怎么办
  • ¥15 QT C++ 鼠标键盘通信