{"id":130621,"date":"2010-08-26T13:37:02","date_gmt":"2010-08-26T04:37:02","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2010\/08\/26\/%e3%83%96%e3%83%ad%e3%82%b0%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%81%ab%e3%82%b5%e3%83%a0%e3%83%8d%e3%82%a4%e3%83%ab%e3%82%92%e3%81%a4%e3%81%91%e3%81%9f%e3%81%84%e3%81%ae%e3%81%a7%e3%81%99%e3%81%8c\/"},"modified":"2010-08-26T13:37:02","modified_gmt":"2010-08-26T04:37:02","slug":"%e3%83%96%e3%83%ad%e3%82%b0%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%81%ab%e3%82%b5%e3%83%a0%e3%83%8d%e3%82%a4%e3%83%ab%e3%82%92%e3%81%a4%e3%81%91%e3%81%9f%e3%81%84%e3%81%ae%e3%81%a7%e3%81%99%e3%81%8c","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%83%96%e3%83%ad%e3%82%b0%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%81%ab%e3%82%b5%e3%83%a0%e3%83%8d%e3%82%a4%e3%83%ab%e3%82%92%e3%81%a4%e3%81%91%e3%81%9f%e3%81%84%e3%81%ae%e3%81%a7%e3%81%99%e3%81%8c\/","title":{"rendered":"\u30d6\u30ed\u30b0\u8a18\u4e8b\u4e00\u89a7\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u3064\u3051\u305f\u3044\u306e\u3067\u3059\u304c"},"content":{"rendered":"<p>wordpress2.7.1\u3067\u4f01\u696d\u30b5\u30a4\u30c8\u306e\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u8981\u671b\u3067\u3001\u30d6\u30ed\u30b0\u306e\u8a18\u4e8b\u4e00\u89a7\u306b\u8a18\u4e8b\u306b\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u308b\u753b\u50cf\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u8868\u793a\u3057\u3066\u6b32\u3057\u3044\u3068\u3044\u3046\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308c\u3070\u7c21\u5358\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u3082\u51fa\u6765\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u30012.7\u3068\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u5bfe\u5fdc\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre><code>&lt;?php query_posts(&#039;category_name=hoge&amp;showposts=1&#039;); ?&gt;\n&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;\n\t\t\t\t\t\t\t&lt;div class=&quot;image&quot;&gt;&lt;?php echo wp_get_attachment_image() ; ?&gt;&lt;\/div&gt;\n\t\t\t\t\t\t\t&lt;h3&gt;\u30ab\u30c6\u30b4\u30ea\u30fc\u30bf\u30a4\u30c8\u30eb&lt;\/h3&gt;\n\t\t\t\t\t\t\t&lt;dl&gt;\n\t\t\t\t\t\t\t\t&lt;dt&gt;&lt;a href=&quot;&lt;?php echo the_permalink(); ?&gt;&quot;&gt;&lt;?php echo the_title();?&gt;&lt;\/a&gt;&lt;\/dt&gt;\n\t\t\t\t\t\t\t\t&lt;dd&gt;&lt;a href=&quot;&lt;?php echo the_permalink(); ?&gt;&quot; class=&quot;readmore&quot;&gt;&gt;&gt;\u8a73\u3057\u304f\u8aad\u3080\u3002&lt;\/a&gt;&lt;\/dd&gt;\n\t\t\t\t\t\t\t&lt;\/dl&gt;\n&lt;?php endwhile; endif; ?&gt;<\/code><\/pre>\n<p>\u3057\u304b\u3057\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30b0\u304c\u9593\u9055\u3048\u3066\u3044\u308b\u306e\u304b\u3068\u601d\u3044\u3001wp_get_attachment_image\u306e\u90e8\u5206\u3092the_ID\u306a\u3069\u4ed6\u306e\u30bf\u30b0\u3092\u5165\u308c\u3066\u307f\u305f\u3089\u3001\u52d5\u3044\u305f\uff08\u8868\u793a\u3055\u308c\u305f\uff09\u306e\u3067\u30bf\u30b0\u306f\u9593\u9055\u3048\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3059\u304c\u2026\u3002<br \/>\n\u8a66\u3057\u306bwp_get_attachment_image\u306b\u6dfb\u4ed8\u753b\u50cf\u306eID\u3092\u6307\u5b9a\u3057\u3066\u307f\u305f\u3089\u3001\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u300c\u3072\u3087\u3063\u3068\u3057\u305f\u3089\u3001\u8a18\u4e8b\u306eID\u3068\u6dfb\u4ed8\u753b\u50cf\u306eID\u306e\u3072\u3082\u3065\u3051\u304c\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u306a\u3044\uff08\u3082\u3057\u304b\u3057\u305f\u3089\u3067\u304d\u306a\u3044\uff09\u306e\u304b\uff1f\u300d\u3068\u3082\u8003\u3048\u305f\u306e\u3067\u3059\u304c\u3001\u3082\u3068\u3082\u3068\u5c02\u9580\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u78ba\u8a3c\u304c\u6301\u3066\u307e\u305b\u3093\u3002<\/p>\n<p>\u304a\u805e\u304d\u3057\u305f\u3044\u306e\u306f\u4ee5\u4e0b2\u70b9\u3002<\/p>\n<ul>\n<li>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u73fe\u51fa\u6765\u306a\u3044\u7406\u7531\u3002<\/li>\n<li>\u5b9f\u73fe\u3059\u308b\u70ba\u306e\u4ee3\u66ff\u3048\u6848<\/li>\n<\/ul>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306e\u5b9f\u88c5\u3082\u8003\u3048\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u73fe\u72b6\u3067\u3059\u3054\u3044\u91cf\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u4ee5\u4e0a\u306f\u5897\u3084\u3059\u3068\u7ba1\u7406\u3082\u9762\u5012\u306b\u306a\u308b\u3057\u3001\u5f8c\u3005\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3082\u8003\u3048\u308b\u3068\u3001\u300c\u51fa\u6765\u308c\u3070WP\u81ea\u4f53\u306e\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u5b9f\u73fe\u3057\u305f\u3044\u300d\u3068\u601d\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6700\u7d42\u624b\u6bb5\u3068\u3057\u3066\u6b8b\u3057\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3082\u3057WP\u306e\u6a5f\u80fd\u3067\u5b9f\u73fe\u51fa\u6765\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306e\u5b9f\u88c5\u306b\u8003\u3048\u3092\u30b7\u30d5\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u5fc3\u5f53\u305f\u308a\u306e\u3042\u308b\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u3044\u307e\u3057\u305f\u3089\u3001\u3069\u3046\u305e\u3054\u6559\u793a\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-130621","topic","type-topic","status-closed","hentry","topic-tag-16770"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/130621","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\/130621\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=130621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}