{"id":118307,"date":"2009-06-13T19:25:42","date_gmt":"2009-06-13T10:25:42","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2009\/06\/13\/%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ae%e6%9c%80%e6%96%b0%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b%e\/"},"modified":"2016-07-30T19:11:26","modified_gmt":"2016-07-30T19:11:26","slug":"%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ae%e6%9c%80%e6%96%b0%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ae%e6%9c%80%e6%96%b0%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b\/","title":{"rendered":"\u30da\u30fc\u30b8\u306b\u30ab\u30c6\u30b4\u30ea\u30fc\u5225\u306e\u6700\u65b0\u8a18\u4e8b\u4e00\u89a7\u3092\u8a2d\u7f6e\u3059\u308b\u306b\u306f\uff1f"},"content":{"rendered":"<p>\u7279\u5b9a\u306e\u30da\u30fc\u30b8\uff08\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3067\u306f\u306a\u3044\u30da\u30fc\u30b8\uff09\u306b\u3001get_posts()\u3092\u7528\u3044\u3066\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u8a18\u4e8b\u4e00\u89a7(\u30bf\u30a4\u30c8\u30eb)\u3092\u8868\u793a\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>&lt;?php\n $posts = get_posts(&#039;numberposts=5&amp;category=14&#039;);\n foreach($lastposts as $post) :\n setup_postdata($post);\n ?&gt;\n&lt;li&gt;&lt;span class=&quot;date&quot;&gt;&lt;?php the_time(&#039;Y\/m\/d&#039;) ?&gt;&lt;\/span&gt; &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n&lt;?php endforeach; ?&gt;<\/code><\/pre>\n<p>\u30ab\u30c6\u30b4\u30ea\u30fcID:14\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u8868\u793a\u3057\u305f\u3044\u3068\u3057\u3066\u3001\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u8003\u3048\u305f\u306e\u3067\u3059\u304c\u3001\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306eforum\u306e\u904e\u53bb\u8a18\u4e8b\u3092\u691c\u7d22\u3057\u3066\u3001<\/p>\n<pre><code>&lt;?php\n$posts = get_posts(&#039;numberposts=0&amp;category=14&#039;);\nglobal $post;\n?&gt;\n&lt;?php\nif($posts): foreach($posts as $post): setup_postdata($post); ?&gt;\n&lt;li&gt;&lt;span class=&quot;date&quot;&gt;&lt;?php the_time(&#039;Y\/m\/d&#039;) ?&gt;&lt;\/span&gt; &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n&lt;?php endforeach; endif;\n?&gt;<\/code><\/pre>\n<p>\u3068\u3044\u3046\u30b3\u30fc\u30c9\u3082\u4f5c\u6210\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u3084\u306f\u308a\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u7d50\u679c\u306f\u3069\u3046\u306a\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u6700\u65b0\u306e<strong>\u30da\u30fc\u30b8<\/strong>\uff08\u6295\u7a3f\u3067\u306f\u306a\u304f\uff09\u304c\uff11\u4ef6\u306e\u307f\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n\u8a66\u3057\u306b\u30ab\u30c6\u30b4\u30ea\u30fc\u6307\u5b9a\u3092\u6d88\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u7d50\u679c\u306f\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b<\/p>\n<pre><code>&lt;?php\n $lastposts = get_posts(&#039;numberposts=5&#039;);\n foreach($lastposts as $post) :\n setup_postdata($post);\n ?&gt;\n&lt;li&gt;&lt;span class=&quot;date&quot;&gt;&lt;?php the_time(&#039;Y\/m\/d&#039;) ?&gt;&lt;\/span&gt; &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n&lt;?php endforeach; ?&gt;<\/code><\/pre>\n<p>\u3068\u3044\u3046\u30b3\u30fc\u30c9\u304c\u66f8\u3044\u3066\u3042\u3063\u3066\u3001\u3053\u3061\u3089\u306f\u6b63\u3057\u3044\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3069\u3053\u3092\u3069\u3046\u4fee\u6b63\u3059\u308c\u3070\u3088\u3044\u306e\u304b\u3054\u6559\u793a\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-118307","topic","type-topic","status-closed","hentry","topic-tag-14078","topic-tag-get_posts"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/118307","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\/118307\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=118307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}