bloginfo機能のためにRSSコンテナーを表示します。
get_bloginfo()関数を使う事ができるものを取得する事が出来ます。
値がフィードに使用するために取得する時、すべてのタグや文字変換が削除されます。
Display RSS container for the bloginfo function.
You can retrieve anything that you can using the get_bloginfo() function. Everything will be stripped of tags and characters converted, when the values are retrieved for use in the feeds.
bloginfo_rssのテンプレートタグ使用方法
[php][/php]例
ブログタイトルとリンクを表示
RSSフィードをタイトルとリンクタグの中にブログ名とURLを表示します。
[php][/php] [php][/php]Displays blog name and url in title and link tags of RSS feed.
bloginfo_rssのパラメーター
show
可能な値をget_bloginfo()で見てください。
デフォルト:’’
(string) (optional) See get_bloginfo() for possible values.
Default: ”
- ‘name’ – Weblog title; set in General Options. (Default)
- ‘description’ – Tagline for your blog; set in General Options.
- ‘url’ – URL for your blog’s web site address.
- ‘rdf_url’ – URL for RDF/RSS 1.0 feed.
- ‘rss_url’ – URL for RSS 0.92 feed.
- ‘rss2_url’ – URL for RSS 2.0 feed.
- ‘atom_url’ – URL for Atom feed.
- ‘comments_rss2_url’ – URL for comments RSS 2.0 feed.
- ‘pingback_url’ – URL for Pingback (XML-RPC file).
- ‘admin_email’ – Administrator’s email address; set in General Options.
- ‘charset’ – Character encoding for your blog; set in Reading Options.
- ‘version’ – Version of WordPress your blog uses.
bloginfo_rssの戻り値
(void) この関数は値を返しません。
(void)
This function does not return a value.
備考
- *可能な値の一覧を表示するためには、get_bloginfo()を参照してください。
- *用途:apply_filters()は、2つのパラメーターと一緒に’bloginfo_rss’ハックを呼び出します。
* See get_bloginfo() For the list of possible values to display.
* Uses: apply_filters() Calls ‘bloginfo_rss’ hook with two parameters.
変更ログ
Since: 0.71
ソースファイル
bloginfo_rss()は、wp-includes/feed.phpに位置しています。
bloginfo_rss() is located in wp-includes/feed.php.
関連テンプレートタグ
bloginfo, bloginfo_rss, get_bloginfo, get_bloginfo_rss, wp_title, get_archives, wp_get_archives, get_calendar, get_posts, wp_list_pages, wp_dropdown_pages, wp_loginout, wp_register, query_posts, rss_enclosure
コメント