{"id":1702,"date":"2009-10-19T15:04:25","date_gmt":"2009-10-19T06:04:25","guid":{"rendered":"http:\/\/nosaku.net\/?p=1702"},"modified":"2009-10-24T21:00:04","modified_gmt":"2009-10-24T12:00:04","slug":"%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%b5%e3%83%a0%e3%83%8d%e3%82%a4%e3%83%ab%e4%bb%98%e3%81%8d%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7","status":"publish","type":"post","link":"https:\/\/hidamari.kilo.jp\/nosaku\/archives\/1702","title":{"rendered":"\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u4ed8\u304d\u8a18\u4e8b\u4e00\u89a7"},"content":{"rendered":"<div class=\"imageframe alignleft\" style=\"width:200px;\"><a href=\"http:\/\/nosaku.net\/wp\/wp-content\/uploads\/2009\/10\/list.jpg\" rel=\"lightbox[pics1702]\" title=\"\u30b5\u30e0\u30cd\u30a4\u30eb\u629c\u7c8b\u4ed8\u304d\u4e00\u89a7\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/nosaku.net\/wp\/wp-content\/uploads\/2009\/10\/list.thumbnail.jpg\" alt=\"\u30b5\u30e0\u30cd\u30a4\u30eb\u629c\u7c8b\u4ed8\u304d\u4e00\u89a7\" width=\"200\" height=\"182\" class=\"attachment wp-att-1738\" \/><\/a><\/p>\n<div class=\"imagecaption\">\u30b5\u30e0\u30cd\u30a4\u30eb\u629c\u7c8b\u4ed8\u304d\u4e00\u89a7<\/div>\n<\/div>\n<p>wordpress 2.8.4 \u306e\u56fa\u5b9a\u30da\u30fc\u30b8(page.php)\u306b\u3001\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u306e\u3059\u3079\u3066\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u3068\u629c\u7c8b\u4ed8\u304d\u3067\u8868\u793a\u3057\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3053\u3093\u306a\u611f\u3058\u3002<a href=\"http:\/\/nosaku.net\/photo\">\u30d5\u30a9\u30c8\u30d6\u30ed\u30b0\u4e00\u89a7<\/a><\/p>\n<p class=\"clearfix\">\u305d\u3053\u3067\u57fa\u672c\u7684\u306a The loop \u3067\u3001\u30de\u30eb\u30c1\u30eb\u30fc\u30d7\uff08\u4e8c\u91cd\u30fb\u8907\u5408\u30eb\u30fc\u30d7\uff09\u3059\u308b\u306e\u306b\u30c9\u30c4\u30dc\u306b\u306f\u307e\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<ul>\n<li><a href=\"#id0001\">the loop \u306e\u30de\u30eb\u30c1\u30eb\u30fc\u30d7\u306e\u30c4\u30dc<\/a><\/li>\n<li><a href=\"#id0002\">\u5404\u8a18\u4e8b\u306e\u4e00\u3064\u76ee\u306e\u753b\u50cf\u3092\u30b5\u30e0\u30cd\u30a4\u30eb\u8868\u793a<\/a>\n<ul>\n<li><a href=\"#id000201\">\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u3001QF-GetThumb \u304c\u30a8\u30e9\u30fc<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#id0003\">the_excerpt()\u3092\u30ca\u30f3\u30c8\u30ab\u3059\u308b<\/a><\/li>\n<li><a href=\"#id0004\">list_page.php\u3092\u6c4e\u7528\u306b\u3059\u308b<\/a>\n<ul>\n<li><a href=\"#id000401\">Exec-PHP \u3092\u5c0e\u5165\u3057\u3066\u307f\u308b<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#id0005\">\u8ffd\u52a0\uff1a\u30ab\u30c6\u30b4\u30ea\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3078\u9069\u7528<\/a><\/li>\n<\/ul>\n<h2 id=\"id0001\">The loop \u306e\u30de\u30eb\u30c1\u30eb\u30fc\u30d7\u306e\u30c4\u30dc<\/h2>\n<p>page.php \u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001list_page.php\u3092\u4f5c\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php<br \/>\n\/*<br \/>\nTemplate Name: list_page<br \/>\n*\/<br \/>\nget_header(); ?&gt;<\/p>\n<p>&lt;?php if (have_posts()) : the_post(); ?&gt;<br \/>\n\/* \u2605\uff11\u3000\u3053\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb *\/<br \/>\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<\/p>\n<p>\/* \u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7 start *\/<br \/>\n&lt;?php<br \/>\n$my_query = new WP_Query(&#8216;cat=20&amp;showposts=-1&#8217;);<br \/>\nif ($my_query-&gt;have_posts()) :<br \/>\n\twhile ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;<br \/>\n\/* \u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u8868\u793a *\/<br \/>\n\t&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<br \/>\n&lt;?php<br \/>\n\tendwhile;<br \/>\nendif;<br \/>\n?&gt;<br \/>\n\/* \u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7  end *\/<\/p>\n<p>\/* \u2605\uff13\u3000\u3053\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb *\/<br \/>\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<\/p>\n<p>&lt;?php endif; ?&gt;<br \/>\n&lt;?php get_footer(); ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>07\u884c\u76ee\u306e if (have_posts()) : the_post(); \u304c\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u57fa\u672c\u306e\u30eb\u30fc\u30d7\uff08\u5b9f\u969b\u306f\u8a18\u4e8b\u304c\uff11\u3064\u3057\u304b\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u306e\u3067while\u3067\u30eb\u30fc\u30d7\u3055\u305b\u3066\u306f\u3044\u307e\u305b\u3093\u304c\uff09\u3002<br \/> \u3053\u308c\u3067\u30eb\u30fc\u30d7\u5185\u306e\u95a2\u6570\u3001the_title()\u306a\u3069\u306b\u3001\u3053\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u306a\u3069\u304c\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\u3002\u6697\u9ed9\u306e\u30a6\u30c1\u306b\u3001$wp_query \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u60c5\u5831\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>13\u884c\u76ee\u306e\u3001$my_query = new WP_Query(&#8216;cat=20&amp;showposts=-1&#8217;); \u3067\u3001\u8a18\u4e8b\u4e00\u89a7\u3092\u51fa\u3059\u305f\u3081\u306e\u3001\u30eb\u30fc\u30d7\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\u30ab\u30c6\u30b4\u30eaID\u3092\uff12\uff10\u3068\u3057\u3066\u3001showposts\u306e\uff0d\uff11\u306f\u5168\u3066\u306e\u8a18\u4e8b\u3068\u3044\u3046\u610f\u5473\u3067\u3001\u65b0\u3057\u3044\u30eb\u30fc\u30d7\u306e\u30af\u30a8\u30ea\u3092$my_query \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30bb\u30c3\u30c8\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001$wp_query \u306e\u30eb\u30fc\u30d7\u3068\u3001$my_query \u306e\u30eb\u30fc\u30d7\u306e\u4e8c\u91cd\u30eb\u30fc\u30d7\u306b\u306a\u308a\u3001\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u5024\u3092\u53c2\u7167\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<br \/> \u3068\u3053\u308d\u304c\u3001\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u2605\uff11\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u2605\uff13\u306e\u30bf\u30a4\u30c8\u30eb\u306f\u3001\u540c\u3058\u56fa\u5b9a\u30da\u30fc\u30b8\uff08$wp_query\uff09\u306e\u30bf\u30a4\u30c8\u30eb\u306b\u306a\u3089\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u2605\uff11\u306f\uff2f\uff2b\u3067\u3082\u3001\u2605\uff13\u306f\u3001$my_query \u30eb\u30fc\u30d7\u306e\u6700\u5f8c\u306e\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<br \/> \u306a\u3093\u3067\u3084\u30fc\uff01\uff01<\/p>\n<p>\u305d\u3053\u3067\u3001\u300c\u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7 start\u300d\u306e\u524d\u306b\u3001\u4e0b\u8a18\u306e\u884c\u3092\u305f\u3057\u3066\u3001$wp_query\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3001<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php $temp_query = clone $wp_query; ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>\u300c\u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7 end\u300d\u306e\u3042\u3068\u306b\u3001<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php $wp_query\u3000= clone $temp_query; ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>\u3092\u4ed8\u3051\u8db3\u3057\u3066\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u30e2\u30ce\u3092\u623b\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<br \/> \u304c\u3001\u3053\u308c\u3067\u3082\u3001\u2605\uff13\u306f $my_query \u306e\u6700\u5f8c\u306e\u30bf\u30a4\u30c8\u30eb\u306b\u306a\u3063\u3066\u308b\uff5e\uff01<\/p>\n<p>\u2605\uff13\u306e\u524d\u306b\u3001\u3000$wp_query-&gt;post-&gt;post_title \u3092\u8868\u793a\u3055\u305b\u3066\u307f\u308b\u3068\u3001\u306a\u3093\u3068\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3082\u3057\u306a\u304f\u3066\u3082\u3001\u3061\u3083\u3093\u3068 $wp_query \u306f\u5143\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u5224\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u7269\u306f\u8a66\u3057\u306b\u3001\u300c\u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7 end\u300d\u306e\u3042\u3068\u3067\u3001$post \u3092\u30bb\u30c3\u30c8\u3057\u76f4\u3057\u3066\u307f\u3066\u306f\u3069\u3046\u304b\u3068\u601d\u3044\u3064\u304f\u3002<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php $post = $wp_query-&gt;post; ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>\u3092\u8ffd\u52a0\u3057\u3066\u307f\u305f\u3089\u3001\uff2f\uff2b\uff01\uff01<\/p>\n<p>\u8ffd\u8a18(2009\/10\/24)<br \/>\n\u4e0a\u306e\u3084\u308a\u65b9\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u30b1\u30fc\u30b9\u304c\u767a\u751f\u3002<br \/>\n\u4ee5\u4e0b\u306e\u65b9\u304c\u3001\u826f\u3044\u306e\u304b\u3082\u3002<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php have_posts(); the_post(); ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<p> \u7d50\u679c\u30aa\u30fc\u30e9\u30a4\u306e\u4e8c\u91cd\u30eb\u30fc\u30d7\u3002<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php<br \/>\n\/*<br \/>\nTemplate Name: list_page<br \/>\n*\/<br \/>\nget_header(); ?&gt;<\/p>\n<p>&lt;?php if (have_posts()) : the_post(); ?&gt;<br \/>\n\/* \u2605\uff11\u3000\u3053\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb *\/<br \/>\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<\/p>\n<p>\/* \u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7 start *\/<br \/>\n&lt;?php<br \/>\n$my_query = new WP_Query(&#8216;cat=20&amp;showposts=-1&#8217;);<br \/>\nif ($my_query-&gt;have_posts()) :<br \/>\n\twhile ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;<br \/>\n\/* \u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u8868\u793a *\/<br \/>\n\t&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<br \/>\n&lt;?php<br \/>\n\tendwhile;<br \/>\nendif;<br \/>\n?&gt;<br \/>\n\/* \u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7  end *\/<\/p>\n<p>\/* \u8b0e\u306e\u546a\u6587 *\/<br \/>\n&lt;?php $post = $wp_query-&gt;post; ?&gt;<br \/>\n&lt;?php \/\/\u3042\u308b\u3044\u306f have_posts(); the_post(); ?&gt;<\/p>\n<p>\/* \u2605\uff13\u3000\u3053\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb *\/<br \/>\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<\/p>\n<p>&lt;?php endif; ?&gt;<br \/>\n&lt;?php get_footer(); ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<h2 id=\"id0002\">\u5404\u8a18\u4e8b\u306e\u4e00\u3064\u76ee\u306e\u753b\u50cf\u3092\u30b5\u30e0\u30cd\u30a4\u30eb\u8868\u793a<\/h2>\n<p>\u3064\u304e\u306f\u3001\u5404\u8a18\u4e8b\u3054\u3068\u306b\u3001\u4e00\u3064\u76ee\u306e\u753b\u50cf\u3092\u30b5\u30e0\u30cd\u30a4\u30eb\u8868\u793a\u3057\u305f\u3044\u3068\u3053\u308d\u3002<br \/> \u3053\u308c\u306f\u6700\u5f37\u3059\u304e\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<blockquote>\n<p><a href=\"http:\/\/la-passeggiata.com\/?p=331\">QF-GetThumb 1.1.3 \u30ea\u30ea\u30fc\u30b9<\/a><br \/> \u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3001\u6295\u7a3f\u8a18\u4e8b\u3084\u6307\u5b9a\u3055\u308c\u305f\u30b3\u30fc\u30c9\u5185\u306b\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u30bf\u30b0\u3092\u89e3\u6790\u3057\u3001\u305d\u306e\u3046\u30611\u70b9\u306e\u307f\u3092\u53c2\u7167\u5143\u30a4\u30e1\u30fc\u30b8\u753b\u50cf\u30b5\u30e0\u30cd\u30a4\u30eb\u5316\u53ca\u3073\u30ad\u30e3\u30c3\u30b7\u30e5\u5316\u3059\u308b\u3068\u3044\u3046\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u4e00\u89a7\u7b49\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u751f\u6210\u3084\u3001\u643a\u5e2f\u30b3\u30f3\u30c6\u30f3\u30c4\u5411\u306e\u30c6\u30fc\u30de\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u76ee\u7684\u306b\u958b\u767a\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/blockquote>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php if ($my_count++ &lt; 15) : ?&gt;<br \/>\n\t&lt;p class=&quot;alignleft&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;<br \/>\n\t&lt;?php echo the_qf_get_thumb_one(&#8216;num=0&amp;width=100&#8217;); ?&gt;&lt;\/a&gt;&lt;\/p&gt;<br \/>\n&lt;?php endif; ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u30b3\u30fc\u30c9\u3059\u308b\u3060\u3051\u3067\u3001\u547c\u3073\u51fa\u3057\u305f\u6642\u70b9\u3067\u81ea\u52d5\u7684\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u304c\u4f5c\u6210\u3055\u308c\u3001\u5f53\u8a72\u7b87\u6240\u304c\u30b5\u30e0\u30cd\u30a4\u30eb\u306b\u5bfe\u3059\u308bimg\u30bf\u30b0\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002\u304a\u305d\u308d\u3079\u3057\u4fbf\u5229\u3055\u3002<br \/>\n\u3055\u3059\u304c\u306b\u3001\u5168\u8a18\u4e8b\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u51fa\u3059\u3068\u91cd\u304f\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001\u6700\u65b0\u304b\u3089\uff11\uff15\u4ef6\u5206\u3060\u3051\u51fa\u3059\u3088\u3046\u306b\u3057\u305f\u308a\u3057\u3066\u3002<\/p>\n<h3 id=\"id000201\">\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u3001QF-GetThumb \u304c\u30a8\u30e9\u30fc<\/h3>\n<p>\u3061\u306a\u307f\u306b[post=&#8221;1532&#8243; text=&#8221;\u524d\u56de\u4f5c\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u74b0\u5883&#8221;]\u3067\u306f\u3001imagecreatefromjpeg()\u95a2\u6570\u304c\u7121\u3044\u3068\u304b\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u4f5c\u52d5\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/> \u3069\u3053\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u95a2\u6570\u304b\u3068\u30b0\u30b0\u3063\u305f\u3089\u3001php \u306e GD \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308b\u3068\u306e\u3053\u3068\u3002<br \/> php.ini \u306e<br \/> ;extension=php_gd2.dll<br \/> \u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3001Apache\u3092\u518d\u8d77\u52d5\u3059\u308c\u3070\uff2f\uff2b\u3067\u3057\u305f\u3002<\/p>\n<h2 id=\"id0003\">the_excerpt()\u3092\u30ca\u30f3\u30c8\u30ab\u3059\u308b<\/h2>\n<p>\u6295\u7a3f\u306e\u629c\u7c8b\u3092\u3001\u6587\u672b\u306b [&#8230;]\uff08\u89d2\u62ec\u5f27\uff0b\u4e09\u70b9\u30ea\u30fc\u30c0\u30fc\uff09\u3092\u3064\u3051\u3066\u8868\u793a\u3059\u308b\u3001the_excerpt() \u304c\u3001\u52dd\u624b\u306b\u2039p\u203a\u30bf\u30b0\u3092\u4ed8\u52a0\u3057\u305f\u308a\u3001\u300c\u7d9a\u304d\u3092\u8aad\u3080\u300d\u30ea\u30f3\u30af\u306b\u306a\u3063\u3066\u3044\u306a\u3044[&#8230;]\u3082\u683c\u597d\u60aa\u3044\u6c17\u304c\u3057\u3066\u3001\u3053\u308c\u3092\u30ca\u30f3\u30c8\u30ab\u3059\u308b\u3053\u3068\u306b\u3002<\/p>\n<p>\/wp-includes\/default-filters.php\u5185\u306b\u3042\u308b\u3001add_filter(&#8216;the_excerpt&#8217;, &#8216;wpautop&#8217;); \u304c\u8af8\u60aa\u306e\u6839\u6e90\u3089\u3057\u3044\u306e\u3067\u3001remove_filter\u3067\u3053\u3044\u3064\u3092\u6291\u5236\u3059\u308c\u3070\u826f\u3044\u307f\u305f\u3044\u3002<br \/>\n\u30c6\u30fc\u30de\u306e\u3001function.php\u306e\u6700\u5f8c\u306b\u3001\u4e0b\u8a18\u3092\u8ffd\u52a0\u3002<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\nremove_filter(&#8216;the_excerpt&#8217;, &#8216;wpautop&#8217;);<br \/>\nfunction fdel_tabspc($str){<br \/>\n\t$str = preg_replace(&quot;\/(\\r|\\n|\\r\\n)\/m&quot;, &quot;&lt;br&gt;&quot;, $str);<br \/>\n\t$str = preg_replace(&quot;\/\u3000\/&quot;, &quot;&quot;, $str); \/\/\u5168\u89d2\u30b9\u30da\u30fc\u30b9\u524a\u9664<br \/>\n\t$str = preg_replace(&quot;\/\\t\/&quot;, &quot;&quot;, $str); \/\/\u30bf\u30d6\u524a\u9664<br \/>\n\t$str = preg_replace(&quot;\/\\s\/&quot;, &quot;&quot;, $str); \/\/\u7a7a\u767d\u524a\u9664\uff08\u4f55\u6545\u304b\u3053\u308c\u3067\u6539\u884c\u307e\u3067\u524a\u9664\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u5197\u9577\u306b\uff09<br \/>\n\t$str = preg_replace(&quot;\/(&lt;br&gt;)+\/&quot;, &quot;&lt;br \/&gt;&quot;, $str);<br \/>\n\t$str = preg_replace(&quot;\/^(&lt;br \\\/&gt;)\/&quot;, &quot;&quot;, $str);<br \/>\n\t$str = preg_replace(&quot;\/(&lt;br \\\/&gt;)\\[\\.\\.\\.\\]\/&quot;, &quot;&#8230;&quot;, $str);<br \/>\n\t$str = preg_replace(&quot;\/\\[\\.\\.\\.\\]\/&quot;, &quot;&#8230;&quot;, $str);<br \/>\n\treturn $str;<br \/>\n}<br \/>\nadd_filter(&#8216;the_excerpt&#8217;, &#8216;fdel_tabspc&#8217;);<br \/>\n[\/sourcecode]<\/p>\n<p>\u3064\u3044\u3067\u306b\u3001\u6539\u884c\u306f\u6d3b\u304b\u3057\u3064\u3064\u3001\u4e0d\u8981\u306a\u30b9\u30da\u30fc\u30b9\u3084\u30bf\u30d6\u3001\u7a7a\u767d\u884c\u3092\u524a\u9664\u3057\u3001[&#8230;]\u3092\u305f\u3060\u306e\uff13\u70b9\u30ea\u30fc\u30c0\u30fc\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6b63\u898f\u8868\u73fe\u304c\u4e0b\u624b\u3067\u3001\u5197\u9577\u306a\u3068\u3053\u308d\u306f\u3001\u3069\u306a\u305f\u304b\u76f4\u3057\u3066\uff5e\u3002<\/p>\n<p>\u3053\u308c\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001$my_query\u306e\u30eb\u30fc\u30d7\u306b\u7d44\u307f\u8fbc\u307f\u307e\u3057\u305f\u3002<br \/>\n[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n\t&lt;p class=&quot;clearfix post_excerpt&quot;&gt;&lt;?php the_excerpt(); ?&gt;<br \/>\n\t&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;[ \u7d9a\u304d\u3092\u898b\u308b ]&lt;\/a&gt;&lt;\/p&gt;<br \/>\n[\/sourcecode]<\/p>\n<h2 id=\"id0004\">list_page.php\u3092\u6c4e\u7528\u306b\u3059\u308b<\/h2>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u4e2d\u306b\u3001new WP_Query(&#8216;cat=20&#038;showposts=-1&#8217;); \u3068\u30ab\u30c6\u30b4\u30ea\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u3066\u306f\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u3054\u3068\u306b\u30da\u30fc\u30b8\u7528\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3053\u308c\u306f\u6c17\u306b\u306a\u308b\u306e\u3067\u3001\u30ab\u30c6\u30b4\u30ea\uff29\uff24\u3092\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u6295\u7a3f\u8a18\u4e8b\u4e2d\u306b\u8a2d\u5b9a\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u3001\uff11\u3064\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u6e08\u3080\u304b\u3082\u3002<\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u65b9\u306eID\u3092\u5909\u6570\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;13&#8243;]<br \/>\n$my_query = new WP_Query(&#8216;cat=&#8217; . $my_cat . &#8216;&amp;showposts=-1&#8217;);<br \/>\n[\/sourcecode]<\/p>\n<h3 id=\"id000401\">Exec-PHP \u3092\u5c0e\u5165\u3057\u3066\u307f\u308b<\/h3>\n<p><a href=\"http:\/\/wordpress.org\/extend\/plugins\/exec-php\/\">Exec-PHP<\/a> \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3059\u308c\u3070\u3001\u8a18\u4e8b\u4e2d\u306bphp\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u3057\u3066\u6709\u52b9\u306b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u2192\u300c\u3042\u306a\u305f\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u300d\u306e\u4e0b\u90e8\u3067\u304d\u305f\u300cExec-PHP Settings\u300d\u3068\u3044\u3046\u30e1\u30cb\u30e5\u30fc\u306e\u300cDisable WYSIWYG Conversion Warning\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3092\u66f4\u65b0\u3057\u3066\u3001\u65b0\u898f\u6295\u7a3f\u753b\u9762\u306eWarning\u3092\u975e\u8868\u793a\u306b\u3059\u308c\u3070\uff2f\uff2b\u3002<\/p>\n<p>\u6295\u7a3f\u8a18\u4e8b\u4e2d\u306b\u3001<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php global $my_cat; $my_cat = 3 ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>\u3068\u66f8\u304f\u3088\u3046\u306b\u3057\u3066\u3001<br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e the_content()\u306e\u5f8c\u306b\u3001\u8a18\u4e8b\u4e00\u89a7\u306e\u30eb\u30fc\u30d7\u304c\u6765\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u5909\u6570\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u306e\u307e\u3068\u3081<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n&lt;?php<br \/>\n\/*<br \/>\nTemplate Name: list_page<br \/>\n*\/<br \/>\nget_header(); ?&gt;<\/p>\n<p>&lt;?php if (have_posts()) : the_post(); ?&gt;<br \/>\n\/* \u2605\uff11\u3000\u3053\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb *\/<br \/>\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<br \/>\n&lt;div class=&quot;textBody&quot;&gt;<br \/>\n&lt;?php the_content(); ?&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>\/* \u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7 start *\/<br \/>\n&lt;?php<br \/>\n$my_query = new WP_Query(&#8216;cat=&#8217; . $my_cat . &#8216;&amp;showposts=-1&#8217;);<br \/>\nif ($my_query-&gt;have_posts()) :<br \/>\n\twhile ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;<br \/>\n\/* \u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u8868\u793a *\/<br \/>\n\t&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<br \/>\n&lt;?php if ($my_count++ &lt; 15) : ?&gt;<br \/>\n\t&lt;p class=&quot;alignleft&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;<br \/>\n\t&lt;?php echo the_qf_get_thumb_one(&#8216;num=0&amp;width=100&#8217;); ?&gt;&lt;\/a&gt;&lt;\/p&gt;<br \/>\n&lt;?php endif; ?&gt;<br \/>\n\t&lt;p class=&quot;clearfix post_excerpt&quot;&gt;&lt;?php the_excerpt(); ?&gt;<br \/>\n\t&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;[ \u7d9a\u304d\u3092\u898b\u308b ]&lt;\/a&gt;&lt;\/p&gt;<br \/>\n&lt;?php<br \/>\n\tendwhile;<br \/>\nendif;<br \/>\n?&gt;<br \/>\n\/* \u2605\uff12\u3000\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u306e\u4e00\u89a7\u7528\u30eb\u30fc\u30d7  end *\/<\/p>\n<p>&lt;?php $post = $wp_query-&gt;post; ?&gt;<\/p>\n<p>\/* \u2605\uff13\u3000\u3053\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb *\/<br \/>\n&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;<\/p>\n<p>&lt;?php endif; ?&gt;<br \/>\n&lt;?php get_footer(); ?&gt;<br \/>\n[\/sourcecode]<\/p>\n<h2 id=\"id0005\">\u8ffd\u52a0\uff1a\u30ab\u30c6\u30b4\u30ea\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3078\u9069\u7528<\/h2>\n<p>\u3055\u3059\u304c\u306b\u3001\u8a18\u4e8b\u6570\u304c\u591a\u3044\u3068\u91cd\u3044\u3057\u3001\u5e38\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u8868\u793a\u3067\u3001\u30da\u30fc\u30b8\u9001\u308a\u304c\u51fa\u6765\u308b\u3068\u4fbf\u5229\u3060\u306a\u3068\u3001\u601d\u3048\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3053\u3067\u3001category.php \u3092\u3053\u306e\u5f62\u5f0f\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u4e8c\u91cd\u30eb\u30fc\u30d7\u306b\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u629c\u7c8b\u8868\u793a\u3067\u60c5\u5831\u91cf\u304c\u6e1b\u3063\u305f\u5206\u3001\u8868\u793a\u6295\u7a3f\u6570\u3092\u5897\u3084\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<br \/>\n\u305d\u3053\u3067\u3001<br \/>\nif (have_posts()) :<br \/>\n\u306e\u76f4\u524d\u306b\u3001<br \/>\nquery_posts($query_string.&#8217;&#038;showposts=10&#038;posts_per_page=10&#8242;);<br \/>\n\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30af\u30a8\u30ea\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\nposts_per_page \u304c\u3001\u30a8\u30f3\u30c8\u30ea\u3044\u304f\u3064\u3054\u3068\u306b\u30da\u30fc\u30b8\u3092\u5207\u308b\u304b\u306e\u8a2d\u5b9a\u3067\u3059\u3002\u8868\u793a\u6570\u306e showposts \u3068\u5408\u308f\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001 the_content()\u304c\u3042\u308b\u3068\u3053\u308d\u3092\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u306b\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\uff2f\uff2b\u3002<\/p>\n<p>[sourcecode language=&#8221;php&#8221; firstline=&#8221;&#8221;]<br \/>\n\t&lt;p class=&quot;clearfix post_excerpt&quot;&gt;&lt;?php the_excerpt(); ?&gt;<br \/>\n\t&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;[ \u7d9a\u304d\u3092\u898b\u308b ]&lt;\/a&gt;&lt;\/p&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>\u3053\u308c\u306e\u65b9\u304c\u4fbf\u5229\u304b\u3082\u3002\uff082009\/10\/19\u73fe\u5728\u3001\u5404\u30ab\u30c6\u30b4\u30ea\u8868\u793a\u3092\u3053\u308c\u306b\u3057\u3066\u307f\u307e\u3057\u305f\uff09<br \/>\n\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u3060\u3051\u3001\u4e00\u89a7\u8868\u793a\u306b\u3057\u305f\u3051\u308c\u3070\u3001category-\u30ab\u30c6\u30b4\u30ea\uff29\uff24.php \u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5225\u306b\u4f5c\u308b\u3060\u3051\u3067\u3001\u4e2d\u8eab\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u306a\u304f\uff2f\uff2b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30e0\u30cd\u30a4\u30eb\u629c\u7c8b\u4ed8\u304d\u4e00\u89a7 wordpress 2.8.4 \u306e\u56fa\u5b9a\u30da\u30fc\u30b8(page.php)\u306b\u3001\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u306e\u3059\u3079\u3066\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u3001\u30b5\u30e0\u30cd\u30a4\u30eb\u3068\u629c\u7c8b\u4ed8\u304d\u3067\u8868\u793a\u3057\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002 \u3053\u3093\u306a\u611f\u3058\u3002\u30d5\u30a9\u30c8\u30d6\u30ed\u30b0\u4e00\u89a7 \u305d\u3053\u3067\u57fa\u672c\u7684\u306a  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[18],"tags":[21,23,19],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pFhgl-rs","_links":{"self":[{"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/posts\/1702"}],"collection":[{"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/comments?post=1702"}],"version-history":[{"count":0,"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/posts\/1702\/revisions"}],"wp:attachment":[{"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/media?parent=1702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/categories?post=1702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hidamari.kilo.jp\/nosaku\/wp-json\/wp\/v2\/tags?post=1702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}