WordPress:Template Tags/bloginfo rss
来自站长百科
Description
描述
Displays information about your blog, mostly gathered from the information you supply in Users > Your Profile and General Options from the WordPress WordPress:Administration Panels. This function is identical to bloginfo() except it strips any markup from the output for use in WordPress' syndication feeds. 显示关于你的博客的信息,这些信息大多数是从用户 > 你的基本资料中所提供的信息和WordPress管理面板 一般选项中提供的信息中收集的。这个函数与 bloginfo()是相同的,只是这个函数取消了在WordPress的syndication feeds中使用output的markup。
Usage
%%% <?php bloginfo_rss('show'); ?> %%%
用法
%%% <?php bloginfo_rss('显示'); ?> %%%
Example
Show Blog Title and Link
例子
显示博客标题和链接
Displays blog name and url in title and link tags of RSS feed. 在标题中显示博客名和url和RSS feed的链接标签。
<title><?php bloginfo_rss('name'); ?></title> <link><?php bloginfo_rss('url') ?></link>
<title><?php bloginfo_rss('name'); ?></title>
<link><?php bloginfo_rss('url') ?></link>
Parameters
参数
- show
- (string) Informational detail about your blog. Valid values:
;显示:(string)关于你的博客的详细信息。有效的参数值:
- 'name' - Weblog title; set in General Options. (Default)
- '名称' -网络日志标题;设置在一般选项中。(默认的)
- 'description' - Tagline for your blog; set in General Options.
- '描述' -你的博客的Tagline;设置在一般选项中。
- 'url' - URL for your blog's web site address.
- 'url' -你的博客网站地址的URL。
- 'rdf_url' - URL for RDF/RSS 1.0 feed.
- 'rdf_url' -RDF/RSS 1.0 feed的URL。
- 'rss_url' - URL for RSS 0.92 feed.
- 'rss_url' -RSS 0.92 feed的URL。
- 'rss2_url' - URL for RSS 2.0 feed.
- 'rss2_url' - RSS 2.0 feed的URL。
- 'atom_url' - URL for Atom feed.
- 'atom_url' - Atom feed的URL。
- 'comments_rss2_url' - URL for comments RSS 2.0 feed.
- 'pingback_url' - URL for Pingback (XML-RPC file).
- '评论_rss2_url' - 评论 RSS 2.0 feed的URL。
- 'pingback_url' -Pingback (XML-RPC文件)的URL。
- 'admin_email' - Administrator's email address; set in General Options.
- '管理_电子邮件' -管理员的电子邮件地址,设置在总选项中。
- 'charset' - Character encoding for your blog; set in Reading Options.
- 'charset' -你的博客的字符编码;设置在阅读选项中。
- 'version' - Version of WordPress your blog uses.
- '版本' -你的博客使用的WordPress的版本。
- The following work in WordPress version 1.5 or after:
- 以下的,在WordPress1.5及以后的版本中运行:
- 'html_type' - "Content-type" for your blog.
- 'html_type' -你的博客的"内容类型"。
- 'wpurl' - URL for WordPress installation.
- 'wpurl' -WordPress安装的URL。
- 'template_url' - URL for template in use.
- '模板_url' -正在使用的模板的URL。
- 'template_directory' - URL for template's directory.
- '模板_目录' -模板目录的URL。
- 'stylesheet_url' - URL for primary CSS file.
- '样式表_url' -主要的CSS文件的URL。
- 'stylesheet_directory' - URL for stylesheet directory.
- '样式表_目录' -样式表目录的URL。