{"id":3261,"date":"2020-01-10T16:23:53","date_gmt":"2020-01-10T07:23:53","guid":{"rendered":"http:\/\/apr20.net\/?p=3261"},"modified":"2020-01-10T16:23:53","modified_gmt":"2020-01-10T07:23:53","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%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/apr20.net\/?p=3261","title":{"rendered":"wordpress \u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3067\u8a18\u4e8b\u4e00\u89a7\u53d6\u5f97\u3001\u4e26\u3073\u66ff\u3048"},"content":{"rendered":"<h2>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u6761\u4ef6\u304c\u4e00\u3064\u306e\u5834\u5408<\/h2>\n<p>[php]&lt;?php<br \/>\n$args = array(<br \/>\n  &#8216;posts_per_page&#8217; =&gt; -1, \/\/ \u5168\u4ef6\u53d6\u5f97<br \/>\n  &#8216;category&#8217; =&gt; array( 12,14 ), \/\/ \u30ab\u30c6\u30b4\u30ea<br \/>\n    &#8216;meta_key&#8217; =&gt; &#8216;finished&#8217;, \/\/\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30ad\u30fc<br \/>\n    &#8216;meta_value&#8217; =&gt; 1, \/\/\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024<br \/>\n);<br \/>\n$my_posts = get_posts($args);<br \/>\n?&gt;[\/php]<\/p>\n<h2>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u6761\u4ef6\u304c1\u3064\u3067\u3001\u4e26\u3073\u66ff\u3048\u3082\u3059\u308b\u5834\u5408<\/h2>\n<p>[php]&lt;?php<br \/>\n\/\/\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3067\u4e26\u3073\u66ff\u3048<br \/>\n$args2 = array(<br \/>\n  &#8216;posts_per_page&#8217; =&gt; -1, \/\/ \u5168\u4ef6\u53d6\u5f97<br \/>\n  &#8216;category&#8217; =&gt; array( 12,14 ) , \/\/ \u30ab\u30c6\u30b4\u30ea<br \/>\n&#8216;orderby&#8217; =&gt; &#8216;meta_value&#8217;,<br \/>\n&#8216;meta_key&#8217; =&gt; &#8216;period_end_day&#8217;,<br \/>\n&#8216;order&#8217; =&gt; &#8216;ASC&#8217;,<br \/>\n&#8216;meta_query&#8217; =&gt; array(<br \/>\n      &#8216;key&#8217; =&gt; &#8216;finished&#8217;,<br \/>\n      &#8216;value&#8217; =&gt; 1,<br \/>\n      &#8216;compare&#8217; =&gt; &#8216;!=&#8217;,<br \/>\n    )<br \/>\n);<br \/>\n$my_posts2 = get_posts($args2);<br \/>\n?&gt;[\/php]<\/p>\n<h2>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u6761\u4ef6\u304c\u8907\u6570\u306e\u5834\u5408<\/h2>\n<p>[php]<br \/>\n$args3 = array(<br \/>\n  &#8216;posts_per_page&#8217; =&gt; -1, \/\/ \u5168\u4ef6\u53d6\u5f97<br \/>\n  &#8216;category&#8217; =&gt; 10, \/\/ \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30ab\u30c6\u30b4\u30ea<br \/>\n     &#8216;meta_query&#8217; =&gt; array(<br \/>\n          &#8216;relation&#8217; =&gt; &#8216;OR&#8217;, \/\/OR \u307e\u305f\u306f AND<br \/>\n          array(<br \/>\n               &#8216;key&#8217;     =&gt; &#8216;domain_info_limit_domain&#8217;,<br \/>\n               &#8216;value&#8217;   =&gt;  $alert_limit,<br \/>\n               &#8216;compare&#8217; =&gt; &#8216;&lt;&#8216;,<br \/>\n\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n          ),<br \/>\n         array(<br \/>\n               &#8216;key&#8217;     =&gt; &#8216;domain_info2_limit_domain&#8217;,<br \/>\n               &#8216;value&#8217;   =&gt; $alert_limit,<br \/>\n               &#8216;compare&#8217; =&gt; &#8216;&lt;&#8216;,<br \/>\n\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n          ),<br \/>\n               array(<br \/>\n               &#8216;key&#8217;     =&gt; &#8216;domain_info3_limit_domain&#8217;,<br \/>\n               &#8216;value&#8217;   =&gt; $alert_limit,<br \/>\n               &#8216;compare&#8217; =&gt; &#8216;&lt;&#8216;,<br \/>\n\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n          ),<br \/>\n               array(<br \/>\n               &#8216;key&#8217;     =&gt; &#8216;domain_info4_limit_domain&#8217;,<br \/>\n               &#8216;value&#8217;   =&gt; $alert_limit,<br \/>\n               &#8216;compare&#8217; =&gt; &#8216;&lt;&#8216;,<br \/>\n\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n          ),<br \/>\n               array(<br \/>\n               &#8216;key&#8217;     =&gt; &#8216;domain_info5_limit_domain&#8217;,<br \/>\n               &#8216;value&#8217;   =&gt; $alert_limit,<br \/>\n               &#8216;compare&#8217; =&gt; &#8216;&lt;&#8216;,<br \/>\n\t\t&#8216;type&#8217; =&gt; &#8216;DATE&#8217;<br \/>\n          ),<br \/>\n     ),<br \/>\n);<br \/>\n$my_posts3 = get_posts($args3);[\/php]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u6761\u4ef6\u304c\u4e00\u3064\u306e\u5834\u5408 [php]&lt;?php $args =&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3261","post","type-post","status-publish","format-standard","hentry","category-wordpress-web-category"],"_links":{"self":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/3261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3261"}],"version-history":[{"count":0,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/3261\/revisions"}],"wp:attachment":[{"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}