{"id":13127,"date":"2023-12-22T14:15:28","date_gmt":"2023-12-22T05:15:28","guid":{"rendered":"http:\/\/tcd-manual.net\/?p=13127"},"modified":"2024-01-16T19:11:08","modified_gmt":"2024-01-16T10:11:08","slug":"tcd%e3%83%86%e3%83%bc%e3%83%9ezoomy%ef%bc%9a%e3%83%88%e3%83%83%e3%83%97%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e3%83%96%e3%83%ad%e3%82%b0-%e5%86%99%e7%9c%9f%e4%b8%80%e8%a6%a7%e3%81%a7%e5%90%8c%e3%81%98","status":"publish","type":"post","link":"https:\/\/tcd-manual.net\/?p=13127","title":{"rendered":"TCD\u30c6\u30fc\u30deZOOMY\uff1a\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30d6\u30ed\u30b0\/\u5199\u771f\u4e00\u89a7\u3067\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u306e\u6295\u7a3f\u306e\u8868\u793a\u56de\u6570\u3092\u5236\u9650\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2 class=\"styled_h2\">Q.\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30d3\u30eb\u30c0\u30fc\u3067\u300c\u30d6\u30ed\u30b0\u8a18\u4e8b\u4e00\u89a7\u300d\u300c\u5199\u771f\u4e00\u89a7\u300d\u3092\u8868\u793a\u3059\u308b\u969b\u306b\u3001\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u306e\u6295\u7a3f\u306f1\u3064\u306e\u307f\u306b\u5236\u9650\u3067\u304d\u307e\u305b\u3093\u304b\uff1f<\/h2>\n<p>\u25bc\u5909\u66f4\u7b87\u6240\u30a4\u30e1\u30fc\u30b8<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tcd-manual.net\/wp-content\/uploads\/2023\/12\/zoomy-author-duplicate-01.jpg\" alt=\"\" width=\"800\" height=\"313\" class=\"alignnone size-full wp-image-13129\" srcset=\"https:\/\/tcd-manual.net\/wp-content\/uploads\/2023\/12\/zoomy-author-duplicate-01.jpg 800w, https:\/\/tcd-manual.net\/wp-content\/uploads\/2023\/12\/zoomy-author-duplicate-01-300x117.jpg 300w, https:\/\/tcd-manual.net\/wp-content\/uploads\/2023\/12\/zoomy-author-duplicate-01-768x300.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<h2 class=\"styled_h2\">A.\u30b3\u30f3\u30c6\u30f3\u30c4\u30d3\u30eb\u30c0\u30fc\u5185\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u53ef\u80fd\u3067\u3059\u3002<\/h2>\n<p>\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u306f\u300c<b>\u30d6\u30ed\u30b0\u8a18\u4e8b\u4e00\u89a7<\/b>\u300d\u300c<b>\u5199\u771f\u4e00\u89a7<\/b>\u300d\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u914d\u7f6e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u305d\u308c\u305e\u308c\u30b5\u30a4\u30c8\u4f1a\u54e1\u30e6\u30fc\u30b6\u30fc\u304c\u6295\u7a3f\u3057\u305f\u6295\u7a3f\u306e\u4e00\u89a7\u304c\u305d\u308c\u305e\u308c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u4e00\u89a7\u306b\u4e26\u3076\u9806\u756a\u306f\u300c<b>\u65e5\u4ed8\uff5b\u65b0\u3057\u3044\u9806\uff09<\/b>\u300d\u300c<b>\u65e5\u4ed8\uff5b\u53e4\u3044\u9806\uff09<\/b>\u300d\u300c<b>\u30e9\u30f3\u30c0\u30e0<\/b>\u300d\u304b\u3089\u9078\u629e\u3067\u304d\u307e\u3059\u304c\u3001\u300c\u30e9\u30f3\u30c0\u30e0\u300d\u4ee5\u5916\u3092\u9078\u629e\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u305f\u3068\u3048\u3070\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u304c\u9023\u7d9a\u3057\u3066\u6295\u7a3f\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u3042\u3063\u305f\u5834\u5408\u306a\u3069\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u6295\u7a3f\u3070\u304b\u308a\u304c\u4e26\u3076\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u4e00\u89a7\u306e\u30d0\u30e9\u30a8\u30c6\u30a3\u3092\u6301\u305f\u305b\u308b\u305f\u3081\u306b\u3001\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u306e\u6295\u7a3f\u306e\u8868\u793a\u56de\u6570\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\">\u65b9\u6cd5\uff11<\/h3>\n<p>\u4ee5\u4e0b\u3067\u306f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u30d3\u30eb\u30c0\u30fc\u5185\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u306b\u3001\u30e6\u30fc\u30b6\u30fcID\u3068\u305d\u306e\u8868\u793a\u56de\u6570\u3092\u8ffd\u8de1\u3059\u308b\u51e6\u7406\u3092\u52a0\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>\u3000\u30db\u30fc\u30e0\u30da\u30fc\u30b8 (front-page.php)<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b>\u3000207\u884c\u76ee\u4ed8\u8fd1\u306b\u8ffd\u52a0<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;div class=&quot;p-index-archive p-blog-archive&quot;&gt;\r\n&lt;?php\r\n  while ( $cb_queries&#x5B;$key]&#x5B;'WP_Query']-&gt;have_posts() ) :\r\n  $cb_queries&#x5B;$key]&#x5B;'WP_Query']-&gt;the_post();\r\n\r\n  $author = get_user_by( 'id', $post-&gt;post_author );\r\n<\/pre>\n<p>\u2193 \u3044\u304f\u3064\u304b\u306e\u7b87\u6240\u306b\u8ffd\u52a0\u633f\u5165<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;div class=&quot;p-index-archive p-blog-archive&quot;&gt;\r\n&lt;?php\r\n  \/\/ \u540c\u3058\u30e6\u30fc\u30b6\u30fc\u306e\u8a18\u4e8b\u3092\u8868\u793a\u3059\u308b\u6700\u5927\u56de\u6570\r\n  $desired_count = 1;\r\n\r\n  \/\/ \u65e2\u306b\u8868\u793a\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u306eID\u3068\u305d\u306e\u8868\u793a\u56de\u6570\u3092\u8ffd\u8de1\u3059\u308b\u914d\u5217\r\n  $displayed_authors = array();\r\n\r\n  while ( $cb_queries&#x5B;$key]&#x5B;'WP_Query']-&gt;have_posts() ) :\r\n  $cb_queries&#x5B;$key]&#x5B;'WP_Query']-&gt;the_post();\r\n\r\n  $author = get_user_by( 'id', $post-&gt;post_author );\r\n\r\n  \/\/ \u73fe\u5728\u306e\u6295\u7a3f\u306e\u30e6\u30fc\u30b6\u30fcID\u3092\u53d6\u5f97\r\n  $author_id = get_the_author_meta('ID');\r\n\r\n  \/\/ \u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8868\u793a\u56de\u6570\u3092\u30c1\u30a7\u30c3\u30af\r\n  if (!isset($displayed_authors&#x5B;$author_id])) {\r\n    $displayed_authors&#x5B;$author_id] = 1;\r\n  } elseif ($displayed_authors&#x5B;$author_id] &gt;= $desired_count) {\r\n    \/\/ \u3053\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8868\u793a\u56de\u6570\u304c\u4e0a\u9650\u306b\u9054\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u30b9\u30ad\u30c3\u30d7\r\n    continue;\r\n  } else {\r\n    \/\/ \u8868\u793a\u56de\u6570\u3092\u5897\u3084\u3059\r\n    $displayed_authors&#x5B;$author_id]++;\r\n  }\r\n<\/pre>\n<ul>\n<li>\u6700\u5927\u56de\u6570\u306e\u6570\u5b57\u306f\u304a\u597d\u307f\u3067\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>\u6295\u7a3f\u6570\u304c\u5c11\u306a\u304f\u898b\u3048\u308b\u5834\u5408\u306f\u3001TCD\u30c6\u30fc\u30de\u30aa\u30d7\u30b7\u30e7\u30f3\uff1a\u30b3\u30f3\u30c6\u30f3\u30c4\u30d3\u30eb\u30c0\u30fc\u306e\u8a2d\u5b9a\u3067\u3001\u8a18\u4e8b\u306e\u8868\u793a\u6570\u3092\u5909\u66f4\u3057\u3066\u8abf\u7bc0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h3 class=\"styled_h3\">\u65b9\u6cd5\uff12<\/h3>\n<p>\u65b9\u6cd5\uff11\u3067\u306f\u3001\u8868\u793a\u3055\u308c\u308b\u51e6\u7406\u4e2d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3063\u3066\u304a\u308a\u307e\u3057\u305f\u304c\u3001\u8868\u793a\u5bfe\u8c61\u306e\u8a18\u4e8b\u3092\u53d6\u5f97\u3059\u308b\u51e6\u7406\uff08\u30af\u30a8\u30ea\uff09\u306e\u4f5c\u6210\u6642\u306b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5bfe\u5fdc\u3082\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><b>\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff1a<\/b>\u3000\u30db\u30fc\u30e0\u30da\u30fc\u30b8 (front-page.php)<br \/>\n<b>\u7de8\u96c6\u3059\u308b\u7b87\u6240\uff1a<\/b>\u300042\uff5e47\u884c\u76ee\u3092\u7f6e\u304d\u63db\u3048<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$args = array(\r\n\t'post_status' =&gt;'publish',\r\n\t'post_type' =&gt; $cb_queries&#x5B;$key]&#x5B;'post_type'],\r\n\t'posts_per_page' =&gt; $cb_content&#x5B;'cb_post_num'],\r\n\t'ignore_sticky_posts' =&gt; true\r\n);\r\n<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post_ids = &#x5B;];\r\n$all_users = get_users();\r\nforeach ( $all_users as $user ) {\r\n    if ( in_array( 'administrator', $user-&gt;roles ) ) {\r\n        \/\/ \u7ba1\u7406\u8005\u306e\u5834\u5408\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u3059\u3079\u3066\u306e\u6295\u7a3fID\u3092\u53d6\u5f97\r\n        $user_posts = get_posts( array(\r\n            'author'        =&gt; $user-&gt;ID,\r\n            'posts_per_page'=&gt; -1,\r\n            'fields'        =&gt; 'ids',\r\n            'post_type'     =&gt; $cb_queries&#x5B;$key]&#x5B;'post_type'],\r\n        ) );\r\n        $post_ids = array_merge( $post_ids, $user_posts );\r\n    } else {\r\n        \/\/ \u975e\u7ba1\u7406\u8005\u306e\u5834\u5408\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u6700\u521d\u306e1\u4ef6\u306e\u6295\u7a3fID\u306e\u307f\u3092\u53d6\u5f97\r\n        $user_post = get_posts( array(\r\n            'author'        =&gt; $user-&gt;ID,\r\n            'posts_per_page'=&gt; 1,\r\n            'fields'        =&gt; 'ids',\r\n            'post_type'     =&gt; $cb_queries&#x5B;$key]&#x5B;'post_type'],\r\n        ) );\r\n        $post_ids = array_merge( $post_ids, $user_posts );\r\n    }\r\n}\r\n$args = array(\r\n\t'post__in' =&gt; $post_ids,\r\n\t'post_status' =&gt;'publish',\r\n\t'post_type' =&gt; $cb_queries&#x5B;$key]&#x5B;'post_type'],\r\n\t'posts_per_page' =&gt; $cb_content&#x5B;'cb_post_num'],\r\n\t'ignore_sticky_posts' =&gt; true\r\n);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Q.\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30d3\u30eb\u30c0\u30fc\u3067\u300c\u30d6\u30ed\u30b0\u8a18\u4e8b\u4e00\u89a7\u300d\u300c\u5199\u771f\u4e00\u89a7\u300d\u3092\u8868\u793a\u3059\u308b\u969b\u306b\u3001\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u306e\u6295\u7a3f\u306f1\u3064\u306e\u307f\u306b\u5236\u9650\u3067\u304d\u307e\u305b\u3093\u304b\uff1f \u25bc\u5909\u66f4\u7b87\u6240\u30a4\u30e1\u30fc\u30b8 A.\u30b3\u30f3\u30c6\u30f3\u30c4\u30d3\u30eb\u30c0\u30fc\u5185\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u53ef\u80fd\u3067\u3059\u3002 [&hellip;]","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[660],"tags":[668,66,704,703,442],"class_list":["post-13127","post","type-post","status-publish","format-standard","hentry","category-tcd067","tag-668","tag-top-page","tag-704","tag-703","tag-442"],"_links":{"self":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/13127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13127"}],"version-history":[{"count":0,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=\/wp\/v2\/posts\/13127\/revisions"}],"wp:attachment":[{"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tcd-manual.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}