{"id":142193,"date":"2011-09-14T13:51:57","date_gmt":"2011-09-14T04:51:57","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2011\/09\/14\/rss%e3%81%ab%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%ae%e5%80%a4%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%97%e3%81%9f%e3%81%84\/"},"modified":"2011-09-14T13:51:57","modified_gmt":"2011-09-14T04:51:57","slug":"rss%e3%81%ab%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%ae%e5%80%a4%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%97%e3%81%9f%e3%81%84","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/rss%e3%81%ab%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%ae%e5%80%a4%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%97%e3%81%9f%e3%81%84\/","title":{"rendered":"RSS\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u8ffd\u52a0\u3057\u305f\u3044"},"content":{"rendered":"<p>\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u3092RSS\u30d5\u30a3\u30fc\u30c9\u306b\u52a0\u3048\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u3084\u308a\u65b9\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3069\u306a\u305f\u304b\u3054\u5b58\u3058\u3067\u3042\u308c\u3070\u6559\u3048\u3066\u9802\u3051\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u4ee5\u4e0b\u6295\u7a3f\u306f\u898b\u3064\u3051\u305f\u306e\u3067\u3059\u304c\u3001\u3084\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3046\u307e\u304f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3002<br \/>\n\u2192 <a href=\"https:\/\/ja.forums.wordpress.org\/topic\/3563?replies=5\">\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5185\u5bb9\u3092RSS\u914d\u4fe1\u3067\u304d\u307e\u3059\u304b\uff1f<\/a><\/p>\n<p>\u3053\u3053\u6570\u65e5\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u51fa\u6765\u305f\u306e\u306f(\u51fa\u6765\u305f\u306e\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c(\u6c57)<br \/>\n 1. functions.php(\u30c6\u30fc\u30de\u914d\u4e0b)\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3057\u3001theme\u914d\u4e0b\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306aphp\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3059\u308b<\/p>\n<pre><code>\/\/ \u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af \u30ea\u30e0\u30fc\u30d6\nremove_filter(&#039;do_feed_rdf&#039;, &#039;do_feed_rdf&#039;, 10);\nremove_filter(&#039;do_feed_rss&#039;, &#039;do_feed_rss&#039;, 10);\nremove_filter(&#039;do_feed_rss2&#039;, &#039;do_feed_rss2&#039;, 10);\nremove_filter(&#039;do_feed_atom&#039;, &#039;do_feed_atom&#039;, 10);\n\n\/\/ \u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af \u8ffd\u52a0\nfunction custom_feed_rdf() {\n    $template_file = &#039;\/feed-rdf.php&#039;;\n    $template_file = ( file_exists( get_template_directory() . $template_file )\n        ? get_template_directory()\n        : ABSPATH . WPINC\n        ) . $template_file;\n    load_template( $template_file );\n}\nadd_action(&#039;do_feed_rdf&#039;, &#039;custom_feed_rdf&#039;, 10, 1);\n\nfunction custom_feed_rss() {\n    $template_file = &#039;\/feed-rss.php&#039;;\n    $template_file = ( file_exists( get_template_directory() . $template_file )\n        ? get_template_directory()\n        : ABSPATH . WPINC\n        ) . $template_file;\n    load_template( $template_file );\n}\nadd_action(&#039;do_feed_rss&#039;, &#039;custom_feed_rss&#039;, 10, 1);\n\nfunction custom_feed_rss2( $for_comments ) {\n    $template_file = &#039;\/feed-rss2&#039; . ( $for_comments ? &#039;-comments&#039; : &#039;&#039; ) . &#039;.php&#039;;\n    $template_file = ( file_exists( get_template_directory() . $template_file )\n        ? get_template_directory()\n        : ABSPATH . WPINC\n        ) . $template_file;\n    load_template( $template_file );\n}\nadd_action(&#039;do_feed_rss2&#039;, &#039;custom_feed_rss2&#039;, 10, 1);\n\nfunction custom_feed_atom( $for_comments ) {\n    $template_file = &#039;\/feed-atom&#039; . ( $for_comments ? &#039;-comments&#039; : &#039;&#039; ) . &#039;.php&#039;;\n    $template_file = ( file_exists( get_template_directory() . $template_file )\n        ? get_template_directory()\n        : ABSPATH . WPINC\n        ) . $template_file;\n    load_template( $template_file );\n}\nadd_action(&#039;do_feed_atom&#039;, &#039;custom_feed_atom&#039;, 10, 1);<\/code><\/pre>\n<p>2.\u5148\u8ff0\u306e\u6295\u7a3f\u306b\u3042\u3063\u305f\u901a\u308a\u3001\u540cfunctions.php\u5185\u306b\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b0\u3057\u3044\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u8a18\u8ff0<\/p>\n<pre><code>function my_content_feed($content, $feed_type){\n  $meta1 = get_post_meta($post-&gt;ID, &#039;img_thumb&#039;, true);\n  $meta2 = get_post_meta($post-&gt;ID, &quot;title&quot;, $single = true);\n  $meta3 = get_post_meta($post-&gt;ID, &#039;lead&#039;, $single = true);\n\n  return $content . $meta1  . $meta2 . $meta3;\n}\nadd_filter(&#039;the_content_feed&#039;, &#039;my_content_feed&#039;, 10, 2);\n\nfunction my_excerpt_rss($output){\n  $meta1 = get_post_meta($post-&gt;ID, &#039;img_thumb&#039;, true);\n  $meta2 = get_post_meta($post-&gt;ID, &quot;title&quot;, $single = true);\n  $meta3 = get_post_meta($post-&gt;ID, &#039;lead&#039;, $single = true);\n  return $output . $meta1  . $meta2 . $meta3;\n}\nadd_filter(&#039;the_excerpt_rss&#039;, &#039;my_excerpt_rss&#039;);<\/code><\/pre>\n<p>\u81ea\u5206\u306e\u8a8d\u8b58\u3067\u306f\u3053\u308c\u306b\u3088\u3063\u3066<\/p>\n<p>\u30fbdescription\u306e\u90e8\u5206\u3067\u547c\u3073\u51fa\u3055\u308c\u305f\u95a2\u6570\u300cthe_excerpt_rss\u300d\u304c\u300cmy_excerpt_rss\u300d\u306b\u30d5\u30c3\u30af\uff1f\u3055\u308c\u3066\u547c\u3073\u51fa\u3055\u308c\u3001\u4e0a\u8a18$meta\u60c5\u5831\u3092\u53d6\u5f97\u3057\u623b\u3059(return)<\/p>\n<p>\u3068\u8a8d\u8b58\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u30fb\u30fb\u3046\u307e\u304f\u3044\u3063\u3066\u306a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3082\u3046\u5c11\u3057\u8a00\u3048\u3070\u3001\u30c6\u30fc\u30de\u914d\u4e0b\u306erss\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u5236\u5fa1\u3067\u304d\u305f\u306f\u305a\u306a\u306e\u3067\u3059\u304c\u3001\u4fee\u6b63\u3057\u3066\u3082\u4fee\u6b63\u5185\u5bb9\u304c\u4e0a\u624b\u304f\u53cd\u6620\u3055\u308c\u305a\u30fb\u30fb\u304b\u3068\u3044\u3063\u3066\u3061\u3087\u3063\u3068\u5909\u3048\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u308a\u3002\u3002<\/p>\n<p>wp-include\u914d\u4e0b\u306e\u672c\u4f53\u306erss\u30d5\u30a1\u30a4\u30eb\u3068\u3069\u3063\u3061\u3082\u898b\u3066\u3044\u308b\u306e\u304b\u3002\u3002\u3068\u4e0d\u5b89\u3067\u3059\u3002<br \/>\n\u3054\u6559\u6388\u306e\u7a0b\u5b9c\u3057\u304f\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-142193","topic","type-topic","status-closed","hentry","topic-tag-14435","topic-tag-14327","topic-tag-13981","topic-tag-rss"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/142193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/142193\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=142193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}