【问题标题】:How to add "more" link in wordpress posts list using XML RPC Api如何使用 XML RPC Api 在 wordpress 帖子列表中添加“更多”链接
【发布时间】:2013-05-29 23:51:43
【问题描述】:

我正在使用 wordpress xml-rpc API 向我的博客添加帖子,但我想在帖子列表中添加带有“更多”链接的帖子摘录。我检查了数据库中有标签 在每个有摘录的帖子内容中,但如果我把这个标签放在我的文章中,它就不起作用了。

有什么想法吗?

【问题讨论】:

    标签: wordpress api xml-rpc


    【解决方案1】:

    您不需要使用额外的字段,只需在您希望内容中断的位置添加<!--more-->

    您甚至可以自定义“阅读更多”消息,例如<!--more But wait, there's more! -->

    查看http://codex.wordpress.org/Customizing_the_Read_More 了解更多信息

    【讨论】:

      猜你喜欢
      • 2011-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多