{"id":173735,"date":"2014-03-20T16:49:35","date_gmt":"2014-03-20T07:49:35","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2014\/03\/20\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e6%8a%95%e7%a8%bf%e8%80%85%e5%88%a5%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b\/"},"modified":"2014-03-20T16:49:35","modified_gmt":"2014-03-20T07:49:35","slug":"%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e6%8a%95%e7%a8%bf%e8%80%85%e5%88%a5%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e6%8a%95%e7%a8%bf%e8%80%85%e5%88%a5%e3%81%ab%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b\/","title":{"rendered":"\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u8a18\u4e8b\u4e00\u89a7\u3092\u6295\u7a3f\u8005\u5225\u306b\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\uff01<br \/>\n\u307e\u3063\u305f\u304f\u306e\u521d\u5fc3\u8005\u3067\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u304c\u8cea\u554f\u3055\u305b\u3066<br \/>\n\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p>\u6295\u7a3f\u8005\u5225\u306b\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u8a18\u4e8b\u4e00\u89a7\u3092\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3055\u305b\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u30cd\u30c3\u30c8\u3067\u898b\u3064\u3051\u305f\u4e0b\u8a18\u306e\u65b9\u6cd5\u3067\u306f\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u5168\u3066\u304c\u4e00\u89a7\u304c\u51fa\u3066\u3057\u307e\u3057\u307e\u3059\u3002\u6295\u7a3f\u8005\u5225\u306b\u3059\u308b\u65b9\u6cd5\u3092\u3054\u6559\u6388\u3092\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>functions.php\u306b\u8a18\u8ff0<\/p>\n<pre><code>function section_feed_shortcode( $atts ) {\nextract( shortcode_atts( array( &#039;limit&#039; =&gt; -1, &#039;type&#039; =&gt; &#039;post&#039;), $atts ) );\n\n$paged = get_query_var(&#039;paged&#039;) ? get_query_var(&#039;paged&#039;) : 1;  \n\nquery_posts(  array (\n    &#039;posts_per_page&#039; =&gt; $limit,\n    &#039;post_type&#039; =&gt; $type,\n    &#039;order&#039; =&gt; &#039;ASC&#039;,\n    &#039;orderby&#039; =&gt;&#039;menu_order&#039;,\n    &#039;paged&#039; =&gt; $paged ) );\n\n$list = &#039; &#039;;   \n\nwhile ( have_posts() ) { the_post();\n\n    $list .= &#039;&lt;article class=&quot;listing-view clearfix&quot;&gt;&#039;\n    . &#039;&lt;div class=&quot;listing-content&quot;&gt;&#039;\n    . &#039;&lt;h3&gt;&lt;a href=&quot;&#039; . get_permalink() . &#039;&quot;&gt;&#039; . get_the_title() . &#039;&lt;\/a&gt;&lt;\/h3&gt;&#039;\n    .&#039;&lt;p&gt;&#039; . get_the_excerpt() . &#039;&lt;\/p&gt;&#039;\n    . &#039;&lt;a href=&quot;&#039; . get_permalink() . &#039;&quot;&gt;&#039; . &#039;\u7d9a\u304d\u3092\u8aad\u3080 &amp;raquo;&#039; . &#039;&lt;\/a&gt;&#039;\n    . &#039;&lt;\/div&gt;&#039;\n    . &#039;&lt;a class=&quot;listing-thumb&quot; href=&quot;&#039; . get_permalink() . &#039;&quot;&gt;&#039; . get_the_post_thumbnail($page-&gt;ID, &#039;listing-thumb&#039;)  . &#039;&lt;span&gt;&lt;\/span&gt;&lt;\/a&gt;&#039;\n    . &#039;&lt;\/article&gt;&#039;;\n\n}\n\nreturn\n&#039;&lt;div class=&quot;listings clearfix&quot;&gt;&#039;\n. $list\n. &#039;&lt;div class=&quot;nav-previous&quot;&gt;&#039; . get_next_posts_link( __( &#039;&lt;span class=&quot;meta-nav&quot;&gt;&amp;larr;&lt;\/span&gt; Older posts&#039; ) ) . &#039;&lt;\/div&gt;&#039;\n. &#039;&lt;div class=&quot;nav-next&quot;&gt;&#039; . get_previous_posts_link( __( &#039;Newer posts &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;\/span&gt;&#039; ) ) . &#039;&lt;\/div&gt;&#039;\n. &#039;&lt;\/div&gt;&#039; .\nwp_reset_query();\n\n}\nadd_shortcode( &#039;feed&#039;, &#039;section_feed_shortcode&#039; );<\/code><\/pre>\n<p>\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8a18\u8ff0<\/p>\n<pre><code>[feed type=&quot;photoblog&quot; limit=&quot;5&quot;]<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-173735","topic","type-topic","status-closed","hentry","topic-tag-14815","topic-tag-18656","topic-tag-14366","topic-tag-21867","topic-tag-21866","topic-tag-15018","topic-tag-13989","topic-tag-21865"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/173735","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\/173735\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=173735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}