{"id":1509,"date":"2012-02-13T01:59:28","date_gmt":"2012-02-12T16:59:28","guid":{"rendered":"http:\/\/codaholic.org\/?p=1509"},"modified":"2020-08-30T22:36:02","modified_gmt":"2020-08-30T13:36:02","slug":"wordpressget_posts%e9%96%a2%e6%95%b0%e3%81%ae%e8%bf%94%e3%82%8a%e5%80%a4%e3%81%ae%e6%a7%8b%e9%80%a0","status":"publish","type":"post","link":"https:\/\/codaholic.org\/?p=1509","title":{"rendered":"[WordPress] get_posts \u95a2\u6570\u306e\u8fd4\u308a\u5024\u306e\u69cb\u9020"},"content":{"rendered":"<p>WordPress \u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u308b\u8a18\u4e8b\u3092\u62bd\u51fa\u3067\u304d\u308b\u95a2\u6570\u306b get_posts \u95a2\u6570\u304c\u3042\u308a\u307e\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u3084\u4e26\u3073\u9806\u306a\u3069\u8a18\u4e8b\u306e\u62bd\u51fa\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u3066\u62bd\u51fa\u3067\u304d\u305f\u3081\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002\u3069\u306e\u3088\u3046\u306a\u304b\u305f\u3061\u3067\u8fd4\u3055\u308c\u308b\u306e\u304b\u3059\u3050\u306b\u5206\u304b\u308b\u3068\u30b9\u30e0\u30fc\u30ba\u306b\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u308b\u305f\u3081\u3001\u8fd4\u308a\u5024\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u8a18\u4e8b\u306e\u6570\u3060\u3051\u914d\u5217\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u305d\u306e\u914d\u5217\u306e\u5404\u8981\u7d20\u306b\u8a18\u4e8b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>array(5) {\n  [0]=&gt;\n  object(stdClass)#58 (24) {\n    [\"ID\"]=&gt;\n    int(50)\n    [\"post_author\"]=&gt;\n    string(1) \"1\"\n    [\"post_date\"]=&gt;\n    string(19) \"2012-01-03 01:52:30\"\n    [\"post_date_gmt\"]=&gt;\n    string(19) \"2012-01-02 16:52:30\"\n    [\"post_content\"]=&gt;\n    string(18) \"\u8a18\u4e8b\u306e\u672c\u6587\"\n    [\"post_title\"]=&gt;\n    string(4) \"\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\"\n    [\"post_excerpt\"]=&gt;\n    string(0) \"\u8a18\u4e8b\u306e\u629c\u7c8b\"\n    [\"post_status\"]=&gt;\n    string(7) \"publish\"\n    [\"comment_status\"]=&gt;\n    string(4) \"open\"\n    [\"ping_status\"]=&gt;\n    string(4) \"open\"\n    [\"post_password\"]=&gt;\n    string(0) \"\u8a18\u4e8b\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\"\n    [\"post_name\"]=&gt;\n    string(4) \"\u8a18\u4e8b\u306e\u30b9\u30e9\u30c3\u30b0\"\n    [\"to_ping\"]=&gt;\n    string(0) \"\"\n    [\"pinged\"]=&gt;\n    string(0) \"\"\n    [\"post_modified\"]=&gt;\n    string(19) \"2012-01-03 01:52:30\"\n    [\"post_modified_gmt\"]=&gt;\n    string(19) \"2012-01-02 16:52:30\"\n    [\"post_content_filtered\"]=&gt;\n    string(0) \"\"\n    [\"post_parent\"]=&gt;\n    int(0)\n    [\"guid\"]=&gt;\n    string(29) \"http:\/\/example.com\/?p=50\"\n    [\"menu_order\"]=&gt;\n    int(0)\n    [\"post_type\"]=&gt;\n    string(4) \"post\"\n    [\"post_mime_type\"]=&gt;\n    string(0) \"\"\n    [\"comment_count\"]=&gt;\n    string(1) \"0\"\n    [\"filter\"]=&gt;\n    string(3) \"raw\"\n  }\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WordPress \u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u308b\u8a18\u4e8b\u3092\u62bd\u51fa\u3067\u304d\u308b\u95a2\u6570\u306b get_posts \u95a2\u6570\u304c\u3042\u308a\u307e\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u3084\u4e26\u3073\u9806\u306a\u3069\u8a18\u4e8b\u306e\u62bd\u51fa\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u3066\u62bd\u51fa\u3067\u304d\u305f\u3081\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002\u3069\u306e\u3088\u3046\u306a\u304b\u305f\u3061\u3067\u8fd4\u3055\u308c\u308b\u306e\u304b\u3059\u3050\u306b\u5206\u304b\u308b\u3068\u30b9\u30e0\u30fc\u30ba [&hellip;]<\/p>\n","protected":false},"author":1,"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_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":[4,1],"tags":[244,242],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gd1W-ol","_links":{"self":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1509"}],"collection":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1509"}],"version-history":[{"count":5,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1509\/revisions"}],"predecessor-version":[{"id":2553,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1509\/revisions\/2553"}],"wp:attachment":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}