{"id":920,"date":"2011-06-01T19:24:29","date_gmt":"2011-06-01T10:24:29","guid":{"rendered":"http:\/\/www.myu-zin.com\/webridge\/?p=920"},"modified":"2011-06-01T19:26:04","modified_gmt":"2011-06-01T10:26:04","slug":"wordpress-%e3%82%b5%e3%82%a4%e3%83%89%e3%83%90%e3%83%bc%e3%81%ab%e8%a8%98%e4%ba%8b%e3%81%ae%e4%b8%80%e8%a6%a7%e3%82%92%e3%82%b5%e3%83%a0%e3%83%8d%e3%82%a4%e3%83%ab%e4%bb%98%e3%81%8d%e3%81%a7%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/www.myu-zin.com\/webridge\/archives\/920.html","title":{"rendered":"WordPress \u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8a18\u4e8b\u306e\u4e00\u89a7\u3092\u30b5\u30e0\u30cd\u30a4\u30eb\u4ed8\u304d\u3067\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-933\" title=\"wp_icon\" src=\"http:\/\/www.myu-zin.com\/webridge\/wp-content\/uploads\/wp_icon.jpg\" alt=\"\" width=\"500\" height=\"200\" srcset=\"https:\/\/www.myu-zin.com\/webridge\/wp-content\/uploads\/wp_icon.jpg 500w, https:\/\/www.myu-zin.com\/webridge\/wp-content\/uploads\/wp_icon-300x120.jpg 300w, https:\/\/www.myu-zin.com\/webridge\/wp-content\/uploads\/wp_icon-400x160.jpg 400w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u4eca\u65e5\u304b\u30896\u6708\uff01\u3002\u3082\u3046\u3059\u3050\u6885\u96e8\u306e\u5b63\u7bc0\u3002\u3061\u3087\u3063\u3068\u30ca\u30a4\u30fc\u30d6\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u304c\u3001\u9811\u5f35\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u76f8\u5909\u308f\u3089\u305a\u4eca\u65e5\u3082WordPress\u95a2\u9023\u3067\u3059\u3002WordPress\u65b0\u7740\u306e\u8a18\u4e8b\u3084\u95a2\u9023\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8868\u793a\u3055\u305b\u308b\u6a5f\u80fd\u306f\u306f\u3058\u3081\u304b\u3089\u591a\u5c11\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3082\u3055\u307e\u3056\u307e\u306a\u8a18\u4e8b\u4e00\u89a7\u8868\u793a\u7cfb\u306e\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u9006\u306b\u591a\u3059\u304e\u3066\u3069\u308c\u304c\u52b9\u679c\u7684\u306a\u3082\u306e\u304b\u898b\u3064\u3051\u308b\u306e\u304c\u5927\u5909\u306a\u304f\u3089\u3044\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u95a2\u9023\u8a18\u4e8b\u3092\u3055\u307e\u3056\u307e\u5f62\u5f0f\u3067\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u6709\u540d\u306a\u306e\u304c<a href=\"http:\/\/wordpress.org\/extend\/plugins\/yet-another-related-posts-plugin\/\" target=\"_blank\">Yet Another Related Posts Plugin<\/a><\/li>\n<li>\u30e9\u30f3\u30c0\u30e0\u306b\u8a18\u4e8b\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b<a href=\"http:\/\/wordpress.org\/extend\/plugins\/advanced-random-posts\/\" target=\"_blank\">Advanced Random Posts<\/a><\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5229\u7528\u3059\u308c\u3070\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3068\u3057\u3066\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8868\u793a\u53ef\u80fd\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u4ee5\u5916\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u3068\u601d\u3044\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u306f\u3061\u3087\u3063\u3068\u96e3\u3057\u3044\u306e\u304b\u306a\u3068\u3002\u3002\uff08\u591a\u5206\u5de5\u592b\u3059\u308c\u3070\u3067\u304d\u305d\u3046\u3067\u3059\u304c\uff09<\/p>\n<p>\u3057\u304b\u3057PHP\u3001WordPress\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u52c9\u5f37\u3059\u308b\u3064\u3044\u3067\u306b\u76f4\u63a5\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u3084\u308a\u307e\u3057\u3087\u3046\uff01\u3068\u3044\u3046\u30b3\u30f3\u30bf\u30f3\u3067\u3059\u3002<br \/>\n\u305d\u3057\u3066\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u304c\u4e26\u3076\u3060\u3051\u3067\u306f\u3064\u307e\u3089\u306a\u3044\u306e\u3067\u3001\u3064\u3044\u3067\u306b\u30b5\u30e0\u30cd\u30a4\u30eb\u3082\u4e00\u7dd2\u306b\u8868\u793a\u3055\u305b\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>sidebar.php\u306e\u4efb\u610f\u306e\u7b87\u6240\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>sidebar.php<\/h3>\n<pre class=\"brush: php; title: \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9; notranslate\" title=\"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\">\r\n&lt;?php if(! is_home()): \/\/home\u4ee5\u5916\u306b\u9069\u7528\u3059\u308b ?&gt;\r\n\r\n&lt;li class=&quot;post_list&quot;&gt;\r\n&lt;h3 class=&quot;widget-title&quot;&gt;\u8a18\u4e8b\u4e00\u89a7&lt;\/h3&gt;\r\n&lt;?php $posts = get_posts('numberposts=10'); ?&gt;\r\n&lt;?php foreach($posts as $post): ?&gt;\r\n\r\n&lt;div class=&quot;list&quot;&gt;\r\n&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_post_thumbnail(array(50,50), array('class' =&gt; 'left')); ?&gt;&lt;\/a&gt;\r\n&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;?php endforeach; ?&gt;\r\n&lt;\/li&gt;\r\n\r\n&lt;?php endif; ?&gt;\r\n\r\n<\/pre>\n<h4>\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u3092<span style=\"color: #008000;\">\u8868\u793a\u3057\u305f\u3044\u5834\u5408<\/span><\/h4>\n<p>\u300c&amp;category=112\u300d\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002\uff08112\u306f\u30ab\u30c6\u30b4\u30eaID\u3067\u3059\u3002\uff09<\/p>\n<pre class=\"brush: php; title: \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9; notranslate\" title=\"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\">\r\n&lt;?php if(! is_home()): \/\/home\u4ee5\u5916\u306b\u9069\u7528\u3059\u308b ?&gt;\r\n\r\n&lt;li class=&quot;post_list&quot;&gt;\r\n&lt;h3 class=&quot;widget-title&quot;&gt;\u8a18\u4e8b\u4e00\u89a7&lt;\/h3&gt;\r\n&lt;?php $posts = get_posts('numberposts=10&amp;category=112'); ?&gt;\r\n&lt;?php foreach($posts as $post): ?&gt;\r\n\r\n&lt;div class=&quot;list&quot;&gt;\r\n&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_post_thumbnail(array(50,50), array('class' =&gt; 'left')); ?&gt;&lt;\/a&gt;\r\n&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;?php endforeach; ?&gt;\r\n&lt;\/li&gt;\r\n\r\n&lt;?php endif; ?&gt;\r\n\r\n<\/pre>\n<h4>\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u3092<span style=\"color: #008000;\">\u8868\u793a\u3057\u305f\u304f\u306a\u3044\u5834\u5408<\/span><\/h4>\n<p>\u300c&amp;category=-112\u300d\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002\uff08\u30de\u30a4\u30ca\u30b9\uff09<\/p>\n<pre class=\"brush: php; title: \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9; notranslate\" title=\"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\">\r\n&lt;?php if(! is_home()): \/\/home\u4ee5\u5916\u306b\u9069\u7528\u3059\u308b ?&gt;\r\n\r\n&lt;li class=&quot;post_list&quot;&gt;\r\n&lt;h3 class=&quot;widget-title&quot;&gt;\u8a18\u4e8b\u4e00\u89a7&lt;\/h3&gt;\r\n&lt;?php $posts = get_posts('numberposts=10&amp;category=-112'); ?&gt;\r\n&lt;?php foreach($posts as $post): ?&gt;\r\n\r\n&lt;div class=&quot;list&quot;&gt;\r\n&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_post_thumbnail(array(50,50), array('class' =&gt; 'left')); ?&gt;&lt;\/a&gt;\r\n&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;?php endforeach; ?&gt;\r\n&lt;\/li&gt;\r\n\r\n&lt;?php endif; ?&gt;\r\n\r\n<\/pre>\n<p>\u3053\u308c\u3067\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u4ee5\u5916\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8a18\u4e8b\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u308b\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u304b\u30896\u6708\uff01\u3002\u3082\u3046\u3059\u3050\u6885\u96e8\u306e\u5b63\u7bc0\u3002\u3061\u3087\u3063\u3068\u30ca\u30a4\u30fc\u30d6&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":933,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[65,4],"tags":[20,25],"class_list":["post-920","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-wordpress","tag-plugins","tag-wordpress-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/posts\/920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/comments?post=920"}],"version-history":[{"count":14,"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/posts\/920\/revisions"}],"predecessor-version":[{"id":935,"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/posts\/920\/revisions\/935"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/media\/933"}],"wp:attachment":[{"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/media?parent=920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/categories?post=920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myu-zin.com\/webridge\/wp-json\/wp\/v2\/tags?post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}