函数文档

the_title_rss()

💡 云策文档标注

概述

the_title_rss() 是一个 WordPress 函数,用于在 RSS 或 Atom 订阅源中显示当前文章的标题。它通过调用 get_the_title_rss() 来获取并输出标题。

关键要点

  • the_title_rss() 用于在订阅源中显示文章标题,是 feed 相关开发中的常用函数。
  • 该函数内部直接调用 get_the_title_rss() 来获取标题,因此功能依赖于后者。
  • 函数位于 wp-includes/feed.php 文件中,自 WordPress 0.71 版本引入,历史较久。

📄 原文内容

Displays the post title in the feed.

Source

function the_title_rss() {
	echo get_the_title_rss();
}

Changelog

Version Description
0.71 Introduced.