{"id":166583,"date":"2013-09-09T13:12:27","date_gmt":"2013-09-09T04:12:27","guid":{"rendered":""},"modified":"2016-07-30T20:30:24","modified_gmt":"2016-07-30T20:30:24","slug":"%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89%e3%81%a8%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%81%a7%e8%a9%b2%e5%bd%93%e3%81%99%e3%82%8b%e8%a8%98%e4%ba%8b%e3%82%92%e6%8a%bd%e5%87%ba%e3%81%97%e3%81%9f","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89%e3%81%a8%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%81%a7%e8%a9%b2%e5%bd%93%e3%81%99%e3%82%8b%e8%a8%98%e4%ba%8b%e3%82%92%e6%8a%bd%e5%87%ba%e3%81%97%e3%81%9f\/","title":{"rendered":"\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u30ab\u30c6\u30b4\u30ea\u3067\u8a72\u5f53\u3059\u308b\u8a18\u4e8b\u3092\u62bd\u51fa\u3057\u305f\u3044"},"content":{"rendered":"<p>\u30da\u30fc\u30b8\u5185\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3059\u308b\u969b\u306e\u52b9\u7387\u3092\u3042\u3052\u308b\u305f\u3081\u306b<br \/>\n\u7ba1\u7406\u753b\u9762\u4e0a\u306b\u3066\u4ee5\u4e0b\u306e\u69d8\u306a\u52d5\u4f5c\u3092\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>1.\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u30ab\u30c6\u30b4\u30ea\u3067\u8a72\u5f53\u3059\u308b\u8a18\u4e8b\u4e00\u89a7\u3092\u51fa\u3059\u3002<br \/>\n2.\u8a72\u5f53\u8a18\u4e8b\u4e00\u89a7\u306e\u4e2d\u3067\u3055\u3089\u306b\u4efb\u610f\u306e\u3082\u306e\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3064\u3051\u3066<br \/>\n\u30c1\u30a7\u30c3\u30af\u3092\u3064\u3051\u305f\u3082\u306e\u3060\u3051\u3092html\u5f62\u5f0f\u3067\u51fa\u529b\u3002<\/p>\n<p>\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u30ab\u30c6\u30b4\u30ea\u3067\u7d5e\u308a\u8fbc\u3080\u306e\u306f\u51fa\u6765\u308b(http:\/\/www.webopixel.net\/wordpress\/401.html\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f)\u306f\u51fa\u6765\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\n\u305d\u308c\u3060\u3068search.php\u3092\u4f7f\u308f\u306a\u304f\u3066\u306f\u306a\u3089\u305a\u691c\u7d22\u7d50\u679c\u3092\u7ba1\u7406\u753b\u9762\u4e0a\u306b\u51fa\u3059\u3084\u308a\u65b9\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u73fe\u5728\u306f\u4ee5\u4e0b\u3088\u3046\u306a\u30bd\u30fc\u30b9\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002(\u30d7\u30e9\u30b0\u30a4\u30f3\u5316\u3059\u308b\u524d\u306b\u3072\u3068\u307e\u305aphp\u3067\u66f8\u3044\u3066\u3044\u307e\u3059)<\/p>\n<p>\u7ba1\u7406\u753b\u9762\u4e0a\u306b\u30661\u306e\u7d50\u679c\u3092\u5f97\u308b\u305f\u3081\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3088\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre><code>&lt;?php\n    include_once(&#039;.\/wp-load.php&#039;);\n?&gt;\n\n&lt;div id=&quot;search&quot;&gt;\n&lt;form method=&quot;get&quot; action=&quot;search-post2.php&quot;&gt;\n\t&lt;input name=&quot;s&quot; id=&quot;s&quot; type=&quot;text&quot; \/&gt;\n\t&lt;?php wp_dropdown_categories(&#039;depth=0&amp;orderby=name&amp;hide_empty=1&amp;show_option_all=\u30ab\u30c6\u30b4\u30ea\u30fc\u9078\u629e&#039;); ?&gt;\n\t&lt;input id=&quot;submit&quot; type=&quot;submit&quot; value=&quot;\u691c\u7d22&quot; \/&gt;\n&lt;\/form&gt;\n&lt;\/div&gt;\n\n&lt;?php\n    if($_GET[&quot;s&quot;]) :\n    $s= $_GET[&quot;s&quot;];\n        $allsearch =&amp; new WP_Query(&quot;s=$s&amp;showposts=-1&quot;);\n        var_dump($allsearch);\n?&gt;\n&lt;?php if ($allsearch-&gt;have_posts()) :  ?&gt;\n&lt;?php\n\n    $key = wp_specialchars($s, 1);\n    $count = $allsearch-&gt;post_count;\n    echo &#039;&lt;div class=&quot;headlinea&quot;&gt;&lt;h1 class=&quot;headlineb&quot;&gt;\u300c&#039;.$key.&#039;\u300d\u3067\u691c\u7d22\u3057\u305f\u7d50\u679c\uff1a&#039;.$count.&#039; \u4ef6&lt;\/h1&gt;&lt;\/div&gt;&#039;;\n?&gt;\n&lt;div class=&quot;category&quot;&gt;\n    &lt;ul class=&quot;thumbnails&quot;&gt;\n    &lt;?php while (have_posts()) : the_post(); ?&gt;\n\n&lt;li&gt;\n            &lt;ul class=&quot;thumbnail&quot;&gt;\n                &lt;li class=&quot;thumbimage&quot;&gt;&lt;a&gt;&quot;&gt;&lt;?php the_post_thumbnail(array(170,130), array(&#039;class&#039; =&gt; &#039;left&#039;)); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n                &lt;li class=&quot;thumbtitle&quot;&gt;&lt;a&gt;&quot;&gt;&lt;?php the_title();?&gt;&lt;\/a&gt;\n                &lt;li class=&quot;thumbdescription&quot;&gt;&lt;?php echo get_post_meta($post-&gt;ID,&#039;introduction&#039;,$single=true); ?&gt;\n\n    &lt;?php endwhile;?&gt;\n\n    &lt;?php if ( function_exists( &#039;page_navi&#039; ) ) { page_navi(); } ?&gt;\n&lt;\/div&gt;\n&lt;?php endif; ?&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-166583","topic","type-topic","status-closed","hentry","topic-tag-14578","topic-tag-15003","topic-tag-14060","topic-tag-14035","topic-tag-20966","topic-tag-14121"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/166583","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\/166583\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=166583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}