{"id":1023,"date":"2017-05-14T13:38:43","date_gmt":"2017-05-14T04:38:43","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=1023"},"modified":"2017-05-14T13:46:06","modified_gmt":"2017-05-14T04:46:06","slug":"wordpress%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%ae%e5%80%a4%e3%81%a7%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/wordpress%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%ae%e5%80%a4%e3%81%a7%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e5%8f%96%e5%be%97\/","title":{"rendered":"[WordPress]\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3067\u8a18\u4e8b\u4e00\u89a7\u3092\u53d6\u5f97"},"content":{"rendered":"<p>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3067\u8a18\u4e8b\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306fWP_Query\u306b\u6e21\u3059\u30af\u30a8\u30ea\u306bmeta_query\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n<pre class=\"\">$args = Array(\r\n            'post_type' =&gt; 'POST',\r\n            'cat' =&gt; 123,\/* \u30ab\u30c6\u30b4\u30eaIDEALLY *\/\r\n            'paged' =&gt; get_query_var( 'paged' ),\/* \u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u5834\u5408\u306f\u5fc5\u9808 *\/\r\n            'meta_query' =&gt; array(\r\n                        'key' =&gt; 'maker',\r\n                        'value' =&gt; 'Sony',\r\n                        'compare' =&gt; 'LIKE',\r\n                        'orderby' =&gt; 'maker',\r\n                        'order' =&gt; 'DESC'\r\n                    );,\r\n        );\r\n\t$wp_query = new WP_Query( $args );\r\n\twhile ( $wp_query-&gt;have_posts() ) : $wp_query-&gt;the_post();\r\n?&gt;<\/pre>\n<p>\u4f8b\u306fmaker\u3068\u3044\u3046\u9805\u76ee\u306bSony\u3068\u3044\u3046\u6587\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u8868\u793a\u3055\u305b\u3066\u3044\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"\">meta_query' =&gt; array(\r\n            array(\t\r\n                   'key'=&gt;'wakeup__at',\r\n                   'value'=&gt;array( '05:00:00', '07:00:00' ),\r\n                   'compare'=&gt;'BETWEEN',\r\n                   'type'=&gt;'TIME'\r\n            )\r\n)\r\n<\/pre>\n<p>5:00:00\u304b\u308907:00:00\u306e\u6642\u9593\u306e\u9593\u3067\u691c\u7d22\u3059\u308b\u5834\u5408\u3001Type\u306fTime\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u30bf\u30a4\u30d7\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<table class=\"name_list\">\n<thead>\n<tr>\n<th>\u30c7\u30fc\u30bf\u578b<\/th>\n<td>\u610f\u5473<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>&#8216;CHAR&#8217;<\/th>\n<td>\u6587\u5b57<\/td>\n<\/tr>\n<tr>\n<th>&#8216;NUMERIC&#8217;<\/th>\n<td>&#8216;SIGNED&#8217;\u306e\u5225\u540d<\/td>\n<\/tr>\n<tr>\n<th>&#8216;DECIMAL&#8217;<\/th>\n<td>\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570<\/td>\n<\/tr>\n<tr>\n<th>&#8216;SIGNED&#8217;<\/th>\n<td>\u6574\u6570\uff08\u7b26\u53f7\u3042\u308a\uff09<\/td>\n<\/tr>\n<tr>\n<th>&#8216;UNSIGNED&#8217;<\/th>\n<td>\u6574\u6570\uff08\u7b26\u53f7\u306a\u3057\uff09<\/td>\n<\/tr>\n<tr>\n<th>&#8216;DATE&#8217;<\/th>\n<td>\u65e5\u4ed8<\/td>\n<\/tr>\n<tr>\n<th>&#8216;DATETIME&#8217;<\/th>\n<td>\u65e5\u6642<\/td>\n<\/tr>\n<tr>\n<th>&#8216;TIME&#8217;<\/th>\n<td>\u6642\u523b<\/td>\n<\/tr>\n<tr>\n<th>&#8216;BINARY&#8217;<\/th>\n<td>\u30d0\u30a4\u30ca\u30ea\u30fc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>compare\u306e\u7a2e\u985e\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<table class=\"name_list\">\n<thead>\n<tr>\n<th>\u30c7\u30fc\u30bf\u578b<\/th>\n<td>\u610f\u5473<\/td>\n<td>\u6709\u52b9\u306a\u30c7\u30fc\u30bf\u578b<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>&#8216;=&#8217;<\/th>\n<td>\u5024\u3068\u4e00\u81f4\u3059\u308b<\/td>\n<td>\u3059\u3079\u3066\uff08\u7701\u7565\u6642\uff09<\/td>\n<\/tr>\n<tr>\n<th>&#8216;!=&#8217;<\/th>\n<td>\u5024\u3068\u4e00\u81f4\u3057\u306a\u3044<\/td>\n<td>\u3059\u3079\u3066<\/td>\n<\/tr>\n<tr>\n<th>&#8216;&gt;&#8217;<\/th>\n<td>\u5024\u3088\u308a\u5927\u304d\u3044<\/td>\n<td>\u6570\u5024\u7cfb\u30fb\u65e5\u6642\u7cfb<\/td>\n<\/tr>\n<tr>\n<th>&#8216;&gt;=&#8217;<\/th>\n<td>\u5024\u4ee5\u4e0a<\/td>\n<td>\u6570\u5024\u7cfb\u30fb\u65e5\u6642\u7cfb<\/td>\n<\/tr>\n<tr>\n<th>&#8216;&lt;&#8216;<\/th>\n<td>\u5024\u3088\u308a\u5c0f\u3055\u3044<\/td>\n<td>\u6570\u5024\u7cfb\u30fb\u65e5\u6642\u7cfb<\/td>\n<\/tr>\n<tr>\n<th>&#8216;&lt;=&#8217;<\/th>\n<td>\u5024\u4ee5\u4e0b<\/td>\n<td>\u6570\u5024\u7cfb\u30fb\u65e5\u6642\u7cfb<\/td>\n<\/tr>\n<tr>\n<th>&#8216;LIKE&#8217;<\/th>\n<td>\u5024\u3067\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u306b\u4e00\u81f4\u3059\u308b<\/td>\n<td>&#8216;CHAR&#8217;<\/td>\n<\/tr>\n<tr>\n<th>&#8216;NOT LIKE&#8217;<\/th>\n<td>\u5024\u3067\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u306b\u4e00\u81f4\u3057\u306a\u3044<\/td>\n<td>&#8216;CHAR&#8217;<\/td>\n<\/tr>\n<tr>\n<th>&#8216;IN&#8217;<\/th>\n<td>\u5024\uff08\u914d\u5217\uff09\u3067\u6307\u5b9a\u3057\u305f\u4f55\u308c\u304b\u306b\u4e00\u81f4\u3059\u308b<\/td>\n<td>\u3059\u3079\u3066<\/td>\n<\/tr>\n<tr>\n<th>&#8216;NOT IN&#8217;<\/th>\n<td>\u5024\uff08\u914d\u5217\uff09\u3067\u6307\u5b9a\u3057\u305f\u4f55\u308c\u306b\u3082\u4e00\u81f4\u3057\u306a\u3044<\/td>\n<td>\u3059\u3079\u3066<\/td>\n<\/tr>\n<tr>\n<th>&#8216;BETWEEN&#8217;<\/th>\n<td>2\u3064\u306e\u5024\u3067\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u5185\uff08\u5883\u754c\u3092\u542b\u3080\uff09<\/td>\n<td>\u6570\u5024\u7cfb\u30fb\u65e5\u6642\u7cfb<\/td>\n<\/tr>\n<tr>\n<th>&#8216;NOT BETWEEN&#8217;<\/th>\n<td>2\u3064\u306e\u5024\u3067\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u5916<\/td>\n<td>\u6570\u5024\u7cfb\u30fb\u65e5\u6642\u7cfb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3067\u8a18\u4e8b\u4e00\u89a7\u3092\u53d6\u5f97\u3059<\/p>\n","protected":false},"author":1,"featured_media":54,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1023"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":4,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1023\/revisions"}],"predecessor-version":[{"id":1027,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1023\/revisions\/1027"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/54"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}