{"id":14,"date":"2006-03-26T14:12:57","date_gmt":"2006-03-26T05:12:57","guid":{"rendered":"http:\/\/pasero.net\/~mako\/blog\/s\/14"},"modified":"2009-05-13T14:41:51","modified_gmt":"2009-05-13T05:41:51","slug":"pages%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3","status":"publish","type":"post","link":"https:\/\/pasero.net\/~mako\/blog\/s\/14","title":{"rendered":"Pages+\u30d7\u30e9\u30b0\u30a4\u30f3"},"content":{"rendered":"\u8907\u6570\u306e\u4eba\u9593\u3067(static\u306a)\u30da\u30fc\u30b8\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u3001\u3044\u3064\u66f8\u304d\u63db\u3048\u3089\u308c\u305f\u304b\u308f\u304b\u308a\u306b\u304f\u3044\u3002\u7ba1\u7406\u753b\u9762\u3067\u66f4\u65b0\u65e5\u6642\u9806\u306b\u3067\u304d\u308c\u3070\u3044\u3044\u306e\u3060\u304c\u3001\u3068\u601d\u3063\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u63a2\u3057\u3066\u307f\u305f\u3002\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u3044\u304c <a href=\"http:\/\/www.adamhopkinson.co.uk\/code\/pagesplus\/\" >Pages+<\/a> \u3092\u307b\u3093\u306e\u5c11\u3057\u76f4\u305b\u3070\u76ee\u7684\u306b\u5408\u3044\u305d\u3046\u3060\u3002slug \u306f\u8981\u3089\u306a\u3044\u306e\u3067\u524a\u3063\u3066\u3001post_author, post_modified \u3092\u3064\u3051\u52a0\u3048\u305f\u3002\r\n<pre class=\"brush: diff; title: ; notranslate\" title=\"\">\r\n@@ -131,7 +134,9 @@\r\n \t$sort_cols = array(\r\n \t\t&#039;menu_order&#039;,\r\n \t\t&#039;id&#039;,\r\n-\t\t&#039;post_title&#039;\r\n+\t\t&#039;post_title&#039;,\r\n+\t\t&#039;post_author&#039;,\r\n+\t\t&#039;post_modified&#039;\r\n \t);\r\n \t\r\n \t$sort_orders = array(\r\n@@ -142,7 +147,7 @@\r\n \t$orderby = (!array_key_exists(&#039;orderby&#039;, $_GET) || !in_array(strtolower($_GET&#x5B;&#039;orderby&#039;]), $sort_cols)) ? &#039;menu_order&#039; : $_GET&#x5B;&#039;orderby&#039;];\r\n \t$sortorder = (!array_key_exists(&#039;sortorder&#039;, $_GET) || !in_array(strtolower($_GET&#x5B;&#039;sortorder&#039;]), $sort_orders)) ? &#039;ASC&#039; : $_GET&#x5B;&#039;sortorder&#039;];\r\n \t\r\n-\t$sql = &quot;SELECT ID, menu_order, post_title, post_name, guid FROM $wpdb-&gt;posts WHERE post_parent = $parent_id AND post_status = &#039;static&#039; ORDER BY $orderby $sortorder&quot;;\r\n+\t$sql = &quot;SELECT ID, menu_order, post_title, post_name, guid, post_author, post_modified FROM $wpdb-&gt;posts WHERE post_parent = $parent_id AND post_status = &#039;static&#039; ORDER BY $orderby $sortorder&quot;;\r\n \t$rows = $wpdb-&gt;get_results($sql);\r\n \t$num_rows = count($rows);\r\n \t?&gt;\r\n@@ -166,6 +171,18 @@\r\n \t\t&lt; ?php } else { ?&gt;\r\n \t\t\tTitle\r\n \t\t&lt; ?php } ?&gt;\r\n+\t\t&amp;nbsp;|&amp;nbsp;\r\n+\t\t&lt; ?php if($orderby != &#039;post_author&#039;) {?&gt;\r\n+\t\t\t&lt;a href=&quot;&lt;?php echo pp_link_self($parent_id, array(&#039;orderby&#039;=&gt;&#039;post_author&#039;)); ?&gt;&quot; title=&quot;Order by Author&quot;&gt;Author&lt;\/a&gt;\r\n+\t\t&lt; ?php } else { ?&gt;\r\n+\t\t\tAuthor\r\n+\t\t&lt; ?php } ?&gt;\r\n+\t\t&amp;nbsp;|&amp;nbsp;\r\n+\t\t&lt; ?php if($orderby != &#039;post_modified&#039;) {?&gt;\r\n+\t\t\t&lt;a href=&quot;&lt;?php echo pp_link_self($parent_id, array(&#039;orderby&#039;=&gt;&#039;post_modified&#039;)); ?&gt;&quot; title=&quot;Order by mod-time&quot;&gt;Upd Time&lt;\/a&gt;\r\n+\t\t&lt; ?php } else { ?&gt;\r\n+\t\t\tUpd Time\r\n+\t\t&lt; ?php } ?&gt;\r\n \t\t&lt;br \/&gt;\r\n \t\t&lt;strong&gt;Sort order:&lt;\/strong&gt;\r\n \t\t&lt; ?php if($sortorder != &#039;ASC&#039;) {?&gt;\r\n@@ -193,7 +210,8 @@\r\n \t\t\t\t\r\n \t\t\t\t&lt;th scope=&quot;col&quot;&gt;Order&lt;\/th&gt;\r\n \t\t\t\t&lt;th scope=&quot;col&quot;&gt;Title&lt;\/th&gt;\r\n-\t\t\t\t&lt;th scope=&quot;col&quot;&gt;Slug&lt;\/th&gt;\r\n+\t\t\t\t&lt;th scope=&quot;col&quot;&gt;Owner&lt;\/th&gt;\r\n+\t\t\t\t&lt;th scope=&quot;col&quot;&gt;Updated&lt;\/th&gt;\r\n \t\t\t\t&lt;th scope=&quot;col&quot;&gt;&lt;\/th&gt;\r\n \t\t\t\t&lt;th scope=&quot;col&quot;&gt;&lt;\/th&gt;\r\n \t\t\t\t&lt;th scope=&quot;col&quot;&gt;&lt;\/th&gt;\r\n@@ -222,7 +240,8 @@\r\n \t\t\t\t} else {\r\n \t\t\t\t\techo &quot;&lt;td&gt;$row-&gt;post_title&lt;\/td&gt;n&quot;;\r\n \t\t\t\t}\r\n-\t\t\t\techo &quot;&lt;td&gt;$row-&gt;post_name&lt;\/td&gt;n&quot;;\r\n+\t\t\t\techo &quot;&lt;td&gt;&quot; . get_author_name($row-&gt;post_author) . &quot;&lt;\/td&gt;n&quot;;\r\n+\t\t\t\techo &quot;&lt;td&gt;$row-&gt;post_modified&lt;\/td&gt;n&quot;;\r\n \t\t\t\tif(function_exists(get_guid))\r\n \t\t\t\t{\r\n \t\t\t\t\t\/\/ if available, makes use of the &#039;Guid Rebuild&#039; plugin (also by me!)\r\n<\/pre>\r\n","protected":false},"excerpt":{"rendered":"\u8907\u6570\u306e\u4eba\u9593\u3067(static\u306a)\u30da\u30fc\u30b8\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u3001\u3044\u3064\u66f8\u304d\u63db\u3048\u3089\u308c\u305f\u304b\u308f\u304b\u308a\u306b\u304f\u3044\u3002\u7ba1\u7406\u753b\u9762\u3067\u66f4\u65b0\u65e5\u6642\u9806\u306b\u3067\u304d\u308c\u3070\u3044\u3044\u306e\u3060\u304c\u3001\u3068\u601d\u3063\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u63a2\u3057\u3066\u307f\u305f\u3002\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u3044\u304c Pages+ \u3092\u307b\u3093\u306e\u5c11\u3057\u76f4\u305b\u3070\u76ee\u7684\u306b\u5408&hellip; <a class=\"more-link\" href=\"https:\/\/pasero.net\/~mako\/blog\/s\/14\">\u7d9a\u304d\u3092\u8aad\u3080<span class=\"screen-reader-text\">: Pages+\u30d7\u30e9\u30b0\u30a4\u30f3<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[74],"tags":[2,24],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress","tag-plugin"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pLxlV-e","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/1","url_meta":{"origin":14,"position":0},"title":"WordPress\u306e\u5c0e\u5165","author":"Mako","date":"2006\u5e743\u67085\u65e5(\u65e5)","format":false,"excerpt":"\u67d0\u6240\u3078\u306e WordPress \u5c0e\u5165\u306e\u305f\u3081\u306b\u3001\u307e\u305a\u3053\u3053\u306b\u5165\u308c\u3066\u307f\u308b\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u3068\u304d\u3069\u304d\u30c6\u30b9\u30c8\u3059\u308b\u306e\u3067\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":342,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/342","url_meta":{"origin":14,"position":1},"title":"WordPress \u3067 Google \u30de\u30c3\u30d7\u3092\u4f7f\u3046 (\u518d\u6311\u6226)","author":"Mako","date":"2011\u5e749\u670817\u65e5(\u571f)","format":false,"excerpt":"\u4ee5\u524d\u306b\u300cGoogle \u30de\u30c3\u30d7\u3092\u4f7f\u3046\u300d\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u5f8c WordPress \u3082 Google \u30de\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":527,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/527","url_meta":{"origin":14,"position":2},"title":"\u8457\u4f5c\u6a29\u8868\u793a\u306e\u5e74\u3092\u81ea\u52d5\u7684\u306b\u4ed8\u3051\u308b","author":"Mako","date":"2013\u5e7412\u670810\u65e5(\u706b)","format":false,"excerpt":"\u6700\u8fd1 twitter \u306b\u6d41\u308c\u3066\u304f\u308b\u8a71\u3092\u898b\u3066\u3044\u308b\u3046\u3061\u306b\u3001\u3075\u3068\u305d\u306e\u96a3\u306e\u8a18\u4e8b\u3092\u8aad\u307f\u307e\u3057\u305f\u3002\u300c\u5e74\u672b\u5e74\u59cb\u6052\u4f8b\u3001\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":57,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/57","url_meta":{"origin":14,"position":3},"title":"\u30c6\u30fc\u30de\u3092\u4f5c\u308b (3)","author":"Mako","date":"2007\u5e742\u670826\u65e5(\u6708)","format":false,"excerpt":"Link Rel\u30d7\u30e9\u30b0\u30a4\u30f3\u304cWordPress 2.1 \u306b\u79fb\u884c\u3057\u3066\u4ee5\u6765\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u305f\u3081\u65b0\u305f\u306b\u4f5c\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"linkwidgets","src":"https:\/\/i0.wp.com\/pasero.net\/~mako\/blog\/wp-content\/uploads\/2009\/06\/linkwidgets-192x151.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":37,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/37","url_meta":{"origin":14,"position":4},"title":"wp-slimstat","author":"Mako","date":"2006\u5e7410\u670813\u65e5(\u91d1)","format":false,"excerpt":"\u30a2\u30af\u30bb\u30b9\u89e3\u6790\u30d7\u30e9\u30b0\u30a4\u30f3 wp-slimstat \u3092\u4f7f\u3063\u3066\u307f\u308b\u3002permalink\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2364,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2364","url_meta":{"origin":14,"position":5},"title":"\u30cb\u30e5\u30fc\u30b9\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3067\u30bf\u30a4\u30d4\u30f3\u30b0\u7df4\u7fd2","author":"Mako","date":"2018\u5e746\u67086\u65e5(\u6c34)","format":false,"excerpt":"\u3072\u3089\u304c\u306a\u6570\u6587\u5b57\u3092\u6253\u3061\u8fd4\u3059\u3060\u3051\u306e\u30bf\u30a4\u30d4\u30f3\u30b0\u7df4\u7fd2\u306f\u6848\u306e\u5b9a\u3059\u3050\u306b\u98fd\u304d\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u4f55\u304b\u5225\u306e\u30cd\u30bf\u3092\u8003\u3048\u306a\u304f\u2026","rel":"","context":"\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/internet"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pasero.net\/~mako\/blog\/wp-content\/uploads\/2018\/06\/scraping-266x300.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":0,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}