描述
顯示你博客的相關(guān)信息,大部分都是管理后臺生成于“用戶 > 你的個人資料”和“設(shè)置 > 常規(guī)”中設(shè)置的信息。此功能與 bloginfo() 相同,除非它輸出用于訂閱的RSS標記。
用法
<?php bloginfo_rss('show'); ?>
例子
顯示博客標題和鏈接
顯示帶鏈接和RSS feed標識的博客名稱。
<title><?php bloginfo_rss('name'); ?></title>
<link><?php bloginfo_rss('url') ?></link>
參數(shù)
- show
- (字符串string)關(guān)于你博客的詳細信息。 可用值:
‘name’ – 博客標題;在常規(guī)選項(設(shè)置 > 常規(guī))中設(shè)置。(默認)
‘description’ – 副標題;在常規(guī)選項中設(shè)置。
‘url’ – 你博客的網(wǎng)站地址 URL
‘rdf_url’ – RDF/RSS 1.0 feed 的 URL
‘rss_url’ – RSS 0.92 feed 的 URL
‘rss2_url’ – RSS 2.0 feed 的 URL
‘atom_url’ – Atom feed 的 URL
‘comments_rss2_url’ – 評論 RSS 2.0 feed 的 URL
‘pingback_url’ – Pingback (XML-RPC 文件) 的 URL
‘admin_email’ – 管理員的郵箱地址;在常規(guī)選項中設(shè)置。
-
‘charset’ – 你博客的字符編碼;在閱讀選項中設(shè)置。
‘version’ – 你博客使用的 WordPress 版本。
- 以下在 WordPress 1.5 及以后的版本中生效:
‘html_type’ – 你博客的 "Content-type" 。
‘wpurl’ – WordPress 安裝目錄 URL。
‘template_url’ – 當前模板的 URL
‘template_directory’ – 模板目錄的 URL
‘stylesheet_url’ – 主 CSS 文件的 URL
‘stylesheet_directory’ – 樣式表目錄的 URL





在這里能學(xué)到很多啊!!