{"id":171329,"date":"2014-01-25T11:05:05","date_gmt":"2014-01-25T02:05:05","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2014\/01\/25\/%e8%a4%87%e6%95%b0%e3%81%ae%e5%80%a4%e3%81%ae%e3%82%bb%e3%83%ac%e3%82%af%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e6%a4%9c%e7%b4%a2%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/"},"modified":"2014-01-25T11:05:05","modified_gmt":"2014-01-25T02:05:05","slug":"%e8%a4%87%e6%95%b0%e3%81%ae%e5%80%a4%e3%81%ae%e3%82%bb%e3%83%ac%e3%82%af%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e6%a4%9c%e7%b4%a2%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e8%a4%87%e6%95%b0%e3%81%ae%e5%80%a4%e3%81%ae%e3%82%bb%e3%83%ac%e3%82%af%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e6%a4%9c%e7%b4%a2%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"\u8907\u6570\u306e\u5024\u306e\u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9\u691c\u7d22\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9\u691c\u7d22\u3092\u3064\u304b\u3063\u3066\u3001\u30b5\u30d6\u30eb\u30fc\u30d7\u3067\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306e\u5207\u66ff\u8868\u793a\u3092\u3064\u304f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u691c\u7d22\u7d50\u679c\u305d\u306e\u3082\u306e\u306f\u5e0c\u671b\u901a\u308a\u306b\u5f97\u3089\u308c\u305f\u306e\u3067\u3059\u304c\u3001\u8868\u793a\u671f\u9593\u8a2d\u5b9a\u3092\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3067\u53d6\u5f97\u3059\u308b\u969b\u306e\u521d\u671f\u8a2d\u5b9a\u304c\u3067\u304d\u306a\u3044\u306e\u3068\u3001&#8217;kikan&#8217;\u306e\u9078\u629e\u5f8c\u3082\u8868\u793a\u304c\u5168\u3066kikan\uff11\u306b\u3082\u3069\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u6559\u3048\u3066\u3044\u305f\u3060\u304d\u305f\u3044\u306e\u306f\u3001<br \/>\n\u30fb\u521d\u671f\uff08\u672a\u9078\u629e\u6642\uff09\u306e\u30da\u30fc\u30b8\u3092kikan1\u306e\u691c\u7d22\u7d50\u679c\u3067\u8868\u793a\u3057\u305f\u3044\u3002<br \/>\n\u30fbkikan2,kikan3\u306e\u9078\u629e\u5f8c\u3082\u30bb\u30ec\u30af\u30c8\u30dc\u30c3\u30af\u30b9\u306b\u306fkikan1\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u539f\u56e0<br \/>\n\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u305f\u3076\u3093\u521d\u6b69\u7684\u306a\u3053\u3068\u3060\u3068\u601d\u3044\u8cea\u554f\u3059\u308b\u306e\u304c\u6065\u305a\u304b\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3057\u3066\u3082\u81ea\u529b\u3067\u7b54\u3048\u306b\u8fbf\u308a\u3064\u3051\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>&lt;form name=&#8221;loops&#8221; method=&#8221;get&#8221; &gt;<\/p>\n<p>&lt;select name=&#8217;loop&#8217; &gt;<br \/>\n&lt;option value=&#8221;sort1&#8243;&lt;?php if(isset($_REQUEST[&#8216;loop&#8217;]) &amp;&amp; $_REQUEST[&#8216;loop&#8217;] == &#8216;sort1&#8217;) echo &#8216; selected=&#8221;selected&#8221;&#8216;;?&gt;&gt;a&lt;\/option&gt;<br \/>\n&lt;option value=&#8221;sort2&#8243;&lt;?php if(isset($_REQUEST[&#8216;loop&#8217;]) &amp;&amp; $_REQUEST[&#8216;loop&#8217;] == &#8216;sort2&#8217;) echo &#8216; selected=&#8221;selected&#8221;&#8216;;?&gt;&gt;b&lt;\/option&gt;<br \/>\n&lt;option value=&#8221;sort3&#8243;&lt;?php if(isset($_REQUEST[&#8216;loop&#8217;]) &amp;&amp; $_REQUEST[&#8216;loop&#8217;] == &#8216;sort3&#8217;) echo &#8216; selected=&#8221;selected&#8221;&#8216;;?&gt;&gt;c&lt;\/option&gt;<br \/>\n&lt;\/select&gt;<\/p>\n<p>&lt;select name=&#8217;kikan&#8217; &gt;<br \/>\n&lt;option value=&#8221;&lt;?php echo date(&#8220;Y\/m\/d&#8221;,strtotime(&#8220;+7 day&#8221;)) ;?&gt;&#8221; ;?&gt;kikan1&lt;\/option&gt;<br \/>\n&lt;option value=&#8221;&lt;?php echo date(&#8220;Y\/m\/d&#8221;,strtotime(&#8220;+1 month&#8221;)) ;?&gt;&#8221; ;?&gt;kikan2&lt;\/option&gt;<br \/>\n&lt;option value=&#8221;&lt;?php echo date(&#8220;Y\/m\/d&#8221;,strtotime(&#8220;+3 month&#8221;)) ;?&gt;&#8221; ;?&gt;kikan3&lt;\/option&gt;<br \/>\n&lt;\/select&gt;<\/p>\n<p>&lt;input type=&#8221;submit&#8221;  value=&#8221;change&#8221; \/&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&lt;?php $sortset = $_GET[&#8216;loop&#8217;]; ?&gt;<br \/>\n&lt;?php $kikan = $_GET[&#8216;kikan&#8217;]; ?&gt;<\/p>\n<p>&lt;?php<br \/>\n$current_date = date( &#8216;y\/m\/d&#8217; );<br \/>\n$i=0;<br \/>\n$sortall = array(<br \/>\n  &#8220;sort1&#8221; =&gt; array(<br \/>\n    &#8216;post_type&#8217; =&gt; array(&#8216;livesch_one&#8217;,&#8217;livesch_many&#8217;),<br \/>\n            &#8216;meta_key&#8217; =&gt; &#8216;count&#8217;,<br \/>\n            &#8216;order&#8217; =&gt; &#8216;DESC&#8217;,<br \/>\n            &#8216;orderby&#8217; =&gt; meta_value_num,<br \/>\n    &#8216;posts_per_page&#8217; =&gt; 20,<br \/>\n    &#8216;meta_query&#8217; =&gt; array(<br \/>\n        &#8216;relation&#8217; =&gt; &#8216;AND&#8217;,<br \/>\n         array(<br \/>\n            &#8216;key&#8217; =&gt; &#8216;\u30a8\u30ea\u30a2&#8217;,<br \/>\n            &#8216;value&#8217; =&gt; &#8216;\u6771\u4eac&#8217;<br \/>\n        ),<br \/>\n\t\t\tarray(<br \/>\n&#8216;value&#8217; =&gt; date(&#8220;Y\/m\/d&#8221;,strtotime(&#8220;now&#8221;)),<br \/>\n\t\t\t&#8216;key&#8217; =&gt; &#8216;\u958b\u50ac\u65e5&#8217;,<br \/>\n\t\t\t&#8216;compare&#8217; =&gt; &#8216;&gt;=&#8217;,<br \/>\n\t\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;,<br \/>\n\t\t\t),<br \/>\n        array(<br \/>\n            &#8216;key&#8217; =&gt; &#8216;\u958b\u50ac\u65e5&#8217;,<br \/>\n            &#8216;value&#8217; =&gt; $kikan,<br \/>\n            &#8216;compare&#8217; =&gt; &#8216;&lt;=&#8217;,<br \/>\n            &#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n        ),<br \/>\n    ),<br \/>\n),<br \/>\n  &#8220;sort2&#8221; =&gt; array(<br \/>\n    &#8216;post_type&#8217; =&gt; &#8216;livesch_one&#8217;,<br \/>\n            &#8216;meta_key&#8217; =&gt; &#8216;count&#8217;,<br \/>\n            &#8216;order&#8217; =&gt; &#8216;DESC&#8217;,<br \/>\n            &#8216;orderby&#8217; =&gt; meta_value_num,<br \/>\n    &#8216;posts_per_page&#8217; =&gt; 20,<br \/>\n    &#8216;meta_query&#8217; =&gt; array(<br \/>\n        &#8216;relation&#8217; =&gt; &#8216;AND&#8217;,<br \/>\n         array(<br \/>\n            &#8216;key&#8217; =&gt; &#8216;\u30a8\u30ea\u30a2&#8217;,<br \/>\n            &#8216;value&#8217; =&gt; &#8216;\u6771\u4eac&#8217;<br \/>\n        ),<br \/>\n\t\t\tarray(<br \/>\n&#8216;value&#8217; =&gt; date(&#8220;Y\/m\/d&#8221;,strtotime(&#8220;now&#8221;)),<br \/>\n\t\t\t&#8216;key&#8217; =&gt; &#8216;\u958b\u50ac\u65e5&#8217;,<br \/>\n\t\t\t&#8216;compare&#8217; =&gt; &#8216;&gt;=&#8217;,<br \/>\n\t\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;,<br \/>\n\t\t\t),<br \/>\n        array(<br \/>\n            &#8216;key&#8217; =&gt; &#8216;\u958b\u50ac\u65e5&#8217;,<br \/>\n            &#8216;value&#8217; =&gt; $kikan,<br \/>\n            &#8216;compare&#8217; =&gt; &#8216;&lt;=&#8217;,<br \/>\n            &#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n        ),<br \/>\n    ),<br \/>\n),<br \/>\n  &#8220;sort3&#8221; =&gt;array(<br \/>\n    &#8216;post_type&#8217; =&gt; &#8216;livesch_many&#8217;,<br \/>\n            &#8216;meta_key&#8217; =&gt; &#8216;count&#8217;,<br \/>\n            &#8216;order&#8217; =&gt; &#8216;DESC&#8217;,<br \/>\n            &#8216;orderby&#8217; =&gt; meta_value_num,<br \/>\n    &#8216;posts_per_page&#8217; =&gt; 10,<br \/>\n    &#8216;meta_query&#8217; =&gt; array(<br \/>\n        &#8216;relation&#8217; =&gt; &#8216;AND&#8217;,<br \/>\n         array(<br \/>\n            &#8216;key&#8217; =&gt; &#8216;\u30a8\u30ea\u30a2&#8217;,<br \/>\n            &#8216;value&#8217; =&gt; &#8216;\u6771\u4eac&#8217;<br \/>\n        ),<br \/>\n\t\t\tarray(<br \/>\n&#8216;value&#8217; =&gt; date(&#8220;Y\/m\/d&#8221;,strtotime(&#8220;now&#8221;)),<br \/>\n\t\t\t&#8216;key&#8217; =&gt; &#8216;\u958b\u50ac\u65e5&#8217;,<br \/>\n\t\t\t&#8216;compare&#8217; =&gt; &#8216;&gt;=&#8217;,<br \/>\n\t\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;,<br \/>\n\t\t\t),<br \/>\n        array(<br \/>\n            &#8216;key&#8217; =&gt; &#8216;\u958b\u50ac\u65e5&#8217;,<br \/>\n            &#8216;value&#8217; =&gt; $kikan,<br \/>\n            &#8216;compare&#8217; =&gt; &#8216;&lt;=&#8217;,<br \/>\n            &#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n        ),<br \/>\n      ),<br \/>\n    ),<br \/>\n);?&gt;<\/p>\n<p>&lt;?php if($sortset != &#8221;) {<br \/>\n       $sort = $sortall[$sortset];<br \/>\n    } else {<br \/>\n       $sort = $sortall[&#8220;sort1&#8221;];} ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-171329","topic","type-topic","status-closed","hentry","topic-tag-14327","topic-tag-21351","topic-tag-14122","topic-tag-form"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/171329","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\/171329\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=171329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}