{"id":2223,"date":"2011-01-12T02:24:17","date_gmt":"2011-01-11T17:24:17","guid":{"rendered":"http:\/\/blog.cgfm.jp\/garyu\/?p=2223"},"modified":"2013-03-27T15:24:58","modified_gmt":"2013-03-27T06:24:58","slug":"wordpress3-0%e3%81%a7%e5%ad%90%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ae%e6%96%b0%e7%9d%80%e8%a8%98%e4%ba%8b%e4%b8%80%e8%a6%a7%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%83%86%e3%83%b3%e3%83%97","status":"publish","type":"post","link":"https:\/\/blog.cgfm.jp\/garyu\/archives\/2223","title":{"rendered":"[\u4fee\u6b63]WordPress3.0\u3067\u5b50\u30b5\u30a4\u30c8\u306e\u65b0\u7740\u8a18\u4e8b\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u66f8\u3044\u3066\u307f\u305f"},"content":{"rendered":"<p>\u304a\u4ed5\u4e8b\u3067\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u3067\u4f5c\u3089\u308c\u305f\u30d6\u30ed\u30b0(\u5b50\u30b5\u30a4\u30c8)\u306e\u65b0\u7740\u8a18\u4e8b\u3092\u89aa\u30d6\u30ed\u30b0\u306eHOME\u306b\u8868\u793a\u3059\u308b\u3060\u3051\u306a\u306e\u306b\u610f\u5916\u3068\u82e6\u52b4\u3055\u305b\u3089\u308c\u305f\u306e\u3067\u30e1\u30e2\u3002<br \/>\n<!--more--><br \/>\nTwitter\u3067\u805e\u3044\u3066\u307f\u305f\u3089\u3001<a href=\"http:\/\/twitter.com\/#%21\/digitalcube\">\u3081\u7d44\uff1a\u30c7\u30b8\u30bf\u30eb\u30ad\u30e5\u30fc\u30d6 (digitalcube) on Twitter<\/a> \u3055\u3093\u304b\u3089\u7d39\u4ecb\u3057\u3066\u3082\u3089\u3063\u305f<a href=\"http:\/\/plugins.webnist.net\/2010\/07\/23\/%e9%ac%bc%e5%a4%aa%e9%bc%93oni-daiko-0-5%e5%85%ac%e9%96%8b%e3%81%97%e3%81%be%e3%81%99\/\">\u300c\u9b3c\u592a\u9f13\/Oni Daiko 0.5\u516c\u958b\u3057\u307e\u3059 | Webnist\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300d<\/a>\u304c\u307e\u3055\u306b\u30c9\u30f3\u30d4\u30b7\u30e3\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\uff01<br \/>\n\u2026\u3060\u3063\u305f\u306e\u3060\u3051\u3069\u3001\u4eca\u56de\u306f\u898b\u9001\u308a\u307e\u3057\u305f\u3002<br \/>\n\u300c\u9b3c\u592a\u9f13\u300d\u81ea\u4f53\u306b\u306f\u5168\u304f\u554f\u984c\u304c\u306a\u304f\u3001\u554f\u984c\u304c\u3042\u3063\u305f\u306e\u306f\u30b3\u30a2\u30d5\u30a1\u30a4\u30eb\u306e\u65b9\u3067\u3001<br \/>\n<a href=\"http:\/\/core.trac.wordpress.org\/ticket\/15548\">get_blog_option()\u95a2\u6570\u306b\u3069\u3046\u3082\u4e0d\u5177\u5408\u304c\u3042\u308b\u307f\u305f\u3044\u3002<\/a><\/p>\n<p><a href=\"http:\/\/ivystar.jp\/wordpress\/wordpress-mu%E3%81%AEget_blog_option%E9%96%A2%E6%95%B0%E3%81%A7%E5%95%8F%E9%A1%8C%E3%81%8C%EF%BC%81\/\" target=\"_blank\">\u53c2\u8003\uff1a WordPress MU\u306eget_blog_option\u95a2\u6570\u3067\u554f\u984c\u304c\uff01 | \u30a2\u30a4\u30d3\u30fc\u30b9\u30bf\u30fc<\/a><\/p>\n<p>\u4e0d\u5177\u5408\u306e\u73fe\u8c61\u3068\u3057\u3066\u306f\u3001<br \/>\n\u8907\u6570\u306e\u5b50\u30b5\u30a4\u30c8\u5168\u4f53\u306e\u6700\u65b0\u8a18\u4e8b\u4e00\u89a7\u8868\u793a\u3067\u3001<strong>\u6700\u521d\u306e\u8a18\u4e8b\u306e\u30b5\u30a4\u30c8\u540d\u30fb\u30b5\u30a4\u30c8URL\u304c\u5fc5\u305a\u89aa\u30b5\u30a4\u30c8\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u73fe\u8c61<\/strong>\u3067\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/core.trac.wordpress.org\/browser\/trunk\/wp-includes\/ms-blogs.php\">get_blog_option()\u95a2\u6570<\/a>\u3001Wordpress3.1\u30ea\u30ea\u30fc\u30b9\u5019\u88dc2 (2011\/01\/12\u73fe\u5728)\u3067\u3082<a href=\"http:\/\/core.trac.wordpress.org\/changeset?reponame=&amp;new=17204%40trunk&amp;old=17149%40trunk\">\u7279\u306b\u6539\u4fee\u3055\u308c\u3066\u308b\u3088\u3046\u306b\u306f\u898b\u3048\u306a\u304b\u3063\u305f<\/a>\u306e\u3067\u3001<br \/>\n\u8a66\u884c\u932f\u8aa4\u306e\u672b\u3001\u81ea\u5206\u3067\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3044\u3066\u307f\u305f\u3002<br \/>\n\uff08\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3059\u308b\u307e\u3067\u306e\u6280\u91cf\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3001\u3001\uff09<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u306e\u3001home.php\u7b49\u306b\u66f8\u3051\u3070\u52d5\u304f\u306f\u305a\u3067\u3059\u3002(WordPress 3.0.3\u3067\u78ba\u8a8d)<\/p>\n<p><strong>2012\/11\/19 \u4fee\u6b63 \u8a18\u4e8b\u306e\u30ab\u30c6\u30b4\u30ea\u540d\u30fb\u30ea\u30f3\u30af\u3082\u51fa\u529b<\/strong><\/p>\n<p><strong>2011\/01\/12 \u4e00\u90e8\u4fee\u6b63<\/strong><\/p>\n<p><strong>2011\/06\/01 \u5927\u5e45\u306b\u4fee\u6b63\u3002<\/strong><br \/>\nfunction.php\u3067\u95a2\u6570\u5316\u3002<br \/>\n\u5f15\u6570\u306b\u9664\u5916\u3057\u305f\u3044\u30d6\u30ed\u30b0ID\u3092\u6307\u5b9a\u53ef\u80fd\u306b\u3002<br \/>\n\u8907\u6570\u30d6\u30ed\u30b0\u306e\u8ffd\u52a0\u30fb\u524a\u9664\u3057\u3066\u3044\u3066\u30d6\u30ed\u30b0\u7dcf\u6570\u3068\u30d6\u30ed\u30b0ID\u306eMAX\u3068\u306e\u4e0d\u6574\u5408\u304b\u3089\u306e\u4e0d\u5177\u5408\u306b\u5bfe\u5fdc\u3002<\/p>\n<p><strong>2012\/06\/08 \u4fee\u6b63<\/strong><br \/>\n\u5168\u30b5\u30a4\u30c8\u306eblog_id\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u898b\u76f4\u3057\u3002<br \/>\nget_blogs_of_user( 1, true); \u3060\u3068\u3001admin(\u6307\u5b9a\u30e6\u30fc\u30b6\u30fcID:1)\u304c\u7ba1\u7406\u3057\u3066\u308b\u5b50\u30b5\u30a4\u30c8\u3089\u3057\u304b\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\uff08\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3063\u3066\u308b\u5225\u30e6\u30fc\u30b6\u30fc\u304c\u4f5c\u6210\u3057\u305f\u5b50\u30b5\u30a4\u30c8\u306f\u53d6\u5f97\u3067\u304d\u306a\u3044\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bSQL\u3092\u66f8\u3044\u3066\u53d6\u5f97\u3059\u308b\u5f62\u306b\u5207\u308a\u66ff\u3048\u307e\u3057\u305f\u3002<br \/>\n$blogLists = $wpdb-&gt;get_results( $wpdb-&gt;prepare( &#8220;SELECT blog_id FROM wp_blogs ORDER BY blog_id&#8221; ) );<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"http:\/\/notnil-creative.com\/blog\/archives\/774\">WordPress\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u65b0\u7740\u8a18\u4e8b\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\uff08\u4fee\u6b63\u7248\uff09 | \u795e\u6238\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9Web\u30de\u30b9\u30bf\u30fc\u306e\u65e5\u5831<\/a><\/p>\n<h3>function.php<\/h3>\n<p>\u4ee5\u4e0b\u306e\u95a2\u6570\u3092\u30b3\u30d4\u30da\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n[php]<br \/>\n<?php\n\n\/*\n  \u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u5168\u3066\u306e\u30d6\u30ed\u30b0\u306e\u8a18\u4e8b\u65e5\u4ed8\u9806\u306b\u30bd\u30fc\u30c8\u3057\u305f\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u3002\n\n  \u8fd4\u308a\u5024 : $entryAry : \u8a18\u4e8b\u60c5\u5831\u3092\u683c\u7d0d\u3057\u305f\u914d\u5217\uff08\u65e5\u4ed8\u9806\u306b\u30bd\u30fc\u30c8\uff09\u3001\u8a18\u4e8b\u304c\uff11\u4ef6\u3082\u7121\u3051\u308c\u3070false\u3092\u8fd4\u3059\n  \u5f15\u6570\uff1a$denyBlogs : array \u9664\u5916\u3057\u305f\u3044\u30d6\u30ed\u30b0\u306eblog_id\u3092\u6307\u5b9a\u3059\u308b\u3002\n\n  ex) \u89aa\u8a18\u4e8b(blog_id=1),\u5b50\u30b5\u30a4\u30c8(blog_id=3)\u3092\u9664\u5916\u3057\u305f\u3044\u5834\u5408\n  get_blog_all_entry (array(1,2));\n *\/\n\nfunction get_blog_all_entry($denyBlogs) {\n  global $wpdb;\n  \/\/\u73fe\u5728\u306e\u30d6\u30ed\u30b0ID\u3092\u30e1\u30e2\n  $mysiteid = $GLOBALS['blog_id'];\n  \/\/\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u60c5\u5831\u3092\u53d6\u5f97\n  $blogLists = $wpdb-><br \/>\n          get_results($wpdb->prepare(&#8220;SELECT blog_id FROM wp_blogs ORDER BY blog_id&#8221;));<\/p>\n<p>  foreach ($blogLists as $blog) {<br \/>\n    $blog_id = $blog->blog_id;<br \/>\n    if (in_array($blog_id, $denyBlogs))<br \/>\n      continue; \/\/\u6307\u5b9a\u30d6\u30ed\u30b0\u306f\u30b9\u30ad\u30c3\u30d7<\/p>\n<p>    \/\/\u30d6\u30ed\u30b0\u5207\u66ff<br \/>\n    switch_to_blog($blog->blog_id);<br \/>\n    \/\/\u30d6\u30ed\u30b0\u306e\u30b5\u30a4\u30c8\u540d\u3068URL\u3092\u53d6\u5f97<br \/>\n    $siteurl = get_site_url();<br \/>\n    $blog_name = get_option(&#8216;blogname&#8217;);<\/p>\n<p>    $my_posts = get_posts(&#8220;showposts=3&amp;post_status=publish&#8221;); \/\/\u516c\u958b\u8a18\u4e8b\u306e\u307f<br \/>\n    if (have_posts()) {<br \/>\n      \/\/\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u30ad\u30fc\u306b\u8a18\u4e8b\u60c5\u5831\u3092\u683c\u7d0d<br \/>\n      foreach ($my_posts as $post) {<br \/>\n        setup_postdata($post);<\/p>\n<p>        $get_post_time = $post->post_date;<br \/>\n        \/\/\u540c\u6642\u66f4\u65b0\u3078\u306e\u5bfe\u5fdc\uff08\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u306e\u672b\u5c3e\u306b\u30d6\u30ed\u30b0ID\u3068PostID\u3092\u4ed8\u52a0\uff09<br \/>\n        $unix_time = strtotime($get_post_time) . &#8216;:&#8217; . $blog_id . &#8216;-&#8216; . $post->ID;<br \/>\n        $entryAry[$unix_time][&#8216;quid&#8217;] = $post->guid;<br \/>\n        $entryAry[$unix_time][&#8216;ID&#8217;] = $post->ID;<br \/>\n        $entryAry[$unix_time][&#8216;title&#8217;] = $post->post_title;<br \/>\n        $entryAry[$unix_time][&#8216;date&#8217;] = date(&#8216;Y\/m\/d&#8217;, strtotime($post->post_date));<br \/>\n        \/\/\u30d6\u30ed\u30b0\u306e\u30b5\u30a4\u30c8\u540d\u3068URL\u3092\u683c\u7d0d<br \/>\n        $entryAry[$unix_time][&#8216;siteurl&#8217;] = $siteurl;<br \/>\n        $entryAry[$unix_time][&#8216;blogname&#8217;] = $blog_name;<br \/>\n        $entryAry[$unix_time][&#8216;blog_id&#8217;] = $blog_id;<\/p>\n<p>        \/\/\u30ab\u30c6\u30b4\u30ea\u60c5\u5831\u4fdd\u5b58<br \/>\n        $entryAry[$unix_time][&#8216;categories&#8217;] = get_the_category($post->ID);<\/p>\n<p>        \/\/\u30ab\u30c6\u30b4\u30ea\u30ea\u30f3\u30af\u306f\u30de\u30eb\u30c1blog\u5185\u3067\u3057\u304b\u53d6\u5f97\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u30eb\u30fc\u30d7\u4e0a\u3067\u751f\u6210<br \/>\n        $categories_link = &#8221;;<br \/>\n        $categories = get_categories();<br \/>\n        foreach ($categories as $category) {<br \/>\n          $categories_link .= &#8216;<\/p>\n<li>\n            <a class=\"TextCtg\" href=\"' . get_category_link($category->cat_ID) . &#8216;&#8221;>&#8217; . $category->cat_name . &#8216;<\/a>\n          <\/li>\n<p>          &#8216;;<br \/>\n        }<br \/>\n        $entryAry[$unix_time][&#8216;categories&#8217;][&#8216;link&#8217;] = $categories_link;<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n  \/\/\u30d6\u30ed\u30b0\u5207\u66ff\u7d42\u4e86<br \/>\n  restore_current_blog();<br \/>\n  switch_to_blog($mysiteid); \/\/\u30d6\u30ed\u30b0\u3092\u5f37\u5236\u7684\u306b\u547c\u3073\u51fa\u3057\u30d6\u30ed\u30b0\u306b\u5207\u308a\u66ff\u3048\u308b<\/p>\n<p>  if (count($entryAry) > 0) {<br \/>\n    krsort($entryAry); \/\/\u5168\u8a18\u4e8b\u3092\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u9806\u306b\u4e26\u3073\u66ff\u3048<br \/>\n    return $entryAry;<br \/>\n  } else {<br \/>\n    return false;<br \/>\n  }<br \/>\n}<\/p>\n<p>?><br \/>\n[\/php]<\/p>\n<h3>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h3>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n[php]<br \/>\n<?php\n$entryAry = get_blog_all_entry(array(1,4)); \/\/ \u9664\u5916\u3057\u305f\u3044\u30b5\u30a4\u30c8\u306eblog_id \u3092\u914d\u5217\u3067\u6307\u5b9a\n\u00a0\n\/\/\u8a18\u4e8b\u304c\u3042\u308c\u3070\u8868\u793a\u51e6\u7406\nif ( $entryAry ) : ?><br \/>\n\u00a0\u00a0<\/p>\n<dl class=\"DlInfo DLInfoAllBlog\">\n\u00a0\u00a0<?php\n\u00a0\u00a0\/\/1\u30da\u30fc\u30b8\u5185\u306e\u6295\u7a3f\u6570\uff08\u7ba1\u7406\u753b\u9762\u300c\u8868\u793a\u8a2d\u5b9a\u300d\uff09\u5206\u3060\u3051\u30eb\u30fc\u30d7\n\u00a0\u00a0$j = 0;\n\u00a0\u00a0foreach ( $entryAry as $k => $v ) :<br \/>\n\u00a0\u00a0\u00a0\u00a0if( $j < get_option('posts_per_page')):\n\u00a0\u00a0?><br \/>\n\u00a0\u00a0\u00a0\u00a0<\/p>\n<dt><?php echo $v['date']; ?><\/dt>\n<p>\u00a0\u00a0\u00a0\u00a0<\/p>\n<dd>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<a href=\"<?php echo get_blog_permalink($v['blog_id'], $v['ID']); ?>&#8221; title=&#8221;<?php echo $v['title']; ?>\u306e\u8a73\u7d30\u3078&#8221;><?php echo $v['title']; ?><\/a><br \/>\n\u00a0\u00a0\u00a0\u00a0<\/dd>\n<p>\u00a0\u00a0\u00a0\u00a0<?php if($v['blog_id']!=1): \/\/\u672c\u30b5\u30a4\u30c8\u4ee5\u5916\u306e\u5834\u5408\u3001\u5b50\u30b5\u30a4\u30c8\u540d\u3092\u8868\u793a ?><br \/>\n\u00a0\u00a0\u00a0\u00a0<\/p>\n<dd class='BlogName'>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<a href=\"<?php echo $v['siteurl']; ?>&#8220;><?php echo $v['blogname']; ?><\/a><br \/>\n\u00a0\u00a0\u00a0\u00a0<\/dd>\n<p>\u00a0\u00a0\u00a0\u00a0<\/p>\n<dd class='BlogCategory'>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<!-- \u30ab\u30c6\u30b4\u30ea\u30ea\u30f3\u30af --><\/p>\n<ul>\n\t\t<?php echo $v['categories']['link']; ?>\n\t\t<\/ul>\n<\/dd>\n<p>\u00a0\u00a0\u00a0\u00a0<?php else: ?><br \/>\n\u00a0\u00a0\u00a0\u00a0<\/p>\n<dd class='BlogName'>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<a href=\"<?php echo $v['siteurl']; ?>&#8221; class=&#8217;Hidden&#8217;><?php echo $v['blogname']; ?><\/a><br \/>\n\u00a0\u00a0\u00a0\u00a0<\/dd>\n<p>\u00a0\u00a0\u00a0\u00a0<?php endif; ?><br \/>\n\u00a0\u00a0<?php $j++; endif; endforeach; ?><br \/>\n\u00a0\u00a0<\/dl>\n<p><?php else: ?><br \/>\n\u00a0\u00a0<\/p>\n<p>\u8a72\u5f53\u8a18\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><?php endif; ?><br \/>\n[\/php]<\/p>\n<p>\u51fa\u529b\u7d50\u679c\u306f\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n<\/p>\n<dl>\n<dt>2011\/01\/11<\/dt>\n<dd>\n    <a href=\"http:\/\/hogehoge.com\/site2\/blog\/144\">\u5b50\u30b5\u30a4\u30c82\u306e\u304a\u77e5\u3089\u305b\u8a18\u4e8b\u3067\u3059<\/a>\n  <\/dd>\n<dd class=\"BlogName\">\n    <a href=\"http:\/\/hogehoge.com\/site2\">\u5b50\u30b5\u30a4\u30c82<\/a>\n  <\/dd>\n<dt>2011\/01\/09<\/dt>\n<dd>\n    <a href=\"http:\/\/hogehoge.com\/site3\/blog\/12\">\u5b50\u30b5\u30a4\u30c83\u306e\u304a\u77e5\u3089\u305b\u8a18\u4e8b\u3067\u3059<\/a>\n  <\/dd>\n<dd class=\"BlogName\">\n    <a href=\"http:\/\/hogehoge.com\/site3\">\u5b50\u30b5\u30a4\u30c83<\/a>\n  <\/dd>\n<dt>2010\/12\/27<\/dt>\n<dd>\n    <a href=\"http:\/\/hogehoge.com\/site2\/blog\/55\">\u5b50\u30b5\u30a4\u30c82\u306e\u304a\u77e5\u3089\u305b\u8a18\u4e8b\u3067\u3059<\/a>\n  <\/dd>\n<dd class=\"BlogName\">\n    <a href=\"http:\/\/hogehoge.com\/site2\">\u5b50\u30b5\u30a4\u30c82<\/a>\n  <\/dd>\n<dt>2010\/12\/17<\/dt>\n<dd>\n    <a href=\"http:\/\/hogehoge.com\/site1\/blog\/123\">\u5b50\u30b5\u30a4\u30c81\u306e\u304a\u77e5\u3089\u305b\u8a18\u4e8b\u3067\u3059<\/a>\n  <\/dd>\n<dd class=\"BlogName\">\n    <a href=\"http:\/\/hogehoge.com\/site1\">\u5b50\u30b5\u30a4\u30c81<\/a>\n  <\/dd>\n<dt>2010\/11\/18<\/dt>\n<dd>\n    <a href=\"http:\/\/hogehoge.com\/blog\/111\">\u89aa\u30b5\u30a4\u30c8\u306e\u304a\u77e5\u3089\u305b\u3067\u3059<\/a>\n  <\/dd>\n<\/dl>\n\n<p>\u809d\u306f <a href=\"http:\/\/codex.wordpress.org\/WPMU_Functions\/get_blogs_of_user\">get_blogs_of_user()<\/a> \u3067\u3057\u305f\u3002<br \/>\n\u3053\u306e\u95a2\u6570\u3067\u5168\u3066\u306e\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u30d6\u30ed\u30b0\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\uff08\u30d1\u30c3\u3068\u898b\u3067\u306f\u30d6\u30ed\u30b0\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u601d\u3048\u305f\u3051\u3069\u5168\u7136\u9055\u3063\u305f\uff09<\/p>\n<p>[php]<br \/>\n$blogLists = get_blogs_of_user( 1, true);<br \/>\n[\/php]<\/p>\n<p>\u95a2\u9023\u8a18\u4e8b\uff1a<a href=\"https:\/\/blog.cgfm.jp\/garyu\/archives\/2237\">\u81ea\u529b\u3067\u30da\u30fc\u30b8\u30f3\u30b0\uff1aWordpress3.0\u306e\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u5168\u3066\u306e\u30d6\u30ed\u30b0\u306e\u8a18\u4e8b\u306b\u5bfe\u5fdc | \u6211\u6d41\u5929\u6027 \u304c\u3089\u304f\u305f\u5c4b<\/a><\/p>\n<p>\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8\uff1a<br \/>\n<a href=\"http:\/\/bren.jp\/blog\/wordpress\/get_blog_list\/\">WordPress\uff1a get_blog_list() \u306e\u4ee3\u7528\u51e6\u7406\u306b\u3064\u3044\u3066 | \u30d6\u30ec\u30f3 | \u795e\u6238\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\uff0f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\uff0fPC\u7ba1\u7406<\/a><br \/>\n<a href=\"http:\/\/wp.maaguu.com\/2008\/12\/18\/publish-newentries-list-in-homepage\/\">WordPress MU\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u5404\u30d6\u30ed\u30b0\u306e\u65b0\u7740\u8a18\u4e8b\u3092\u8868\u793a\u3059\u308b | WordPress maaguu (^^; com \u5317\u6d77\u9053\u672d\u5e4c\u3067\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u3092\u697d\u3057\u3080<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u4ed5\u4e8b\u3067\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u3067\u4f5c\u3089\u308c\u305f\u30d6\u30ed\u30b0(\u5b50\u30b5\u30a4\u30c8)\u306e\u65b0\u7740\u8a18\u4e8b\u3092\u89aa\u30d6\u30ed\u30b0\u306eHOME\u306b\u8868\u793a\u3059\u308b\u3060\u3051\u306a\u306e\u306b\u610f\u5916\u3068\u82e6\u52b4\u3055\u305b\u3089\u308c\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[18,20,22],"tags":[367,302,310,86],"class_list":["post-2223","post","type-post","status-publish","format-standard","hentry","category-php","category-wordpress","category-22","tag-php","tag-wordpress3-0","tag-310","tag-86"],"_links":{"self":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/2223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/comments?post=2223"}],"version-history":[{"count":19,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/2223\/revisions"}],"predecessor-version":[{"id":2229,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/2223\/revisions\/2229"}],"wp:attachment":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/media?parent=2223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/categories?post=2223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/tags?post=2223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}