{"id":150,"date":"2015-03-27T15:42:38","date_gmt":"2015-03-27T06:42:38","guid":{"rendered":"https:\/\/www.crestboz.co.jp\/techblog\/?p=150"},"modified":"2016-09-17T17:10:07","modified_gmt":"2016-09-17T08:10:07","slug":"wordpress%e3%81%a7%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%89%e3%83%90%e3%83%bc%e3%82%92%e3%83%9a%e3%83%bc%e3%82%b8%e6%af%8e%e3%81%ab%e5%a4%89","status":"publish","type":"post","link":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/","title":{"rendered":"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f"},"content":{"rendered":"<p>\u307e\u305a\u3001\u5168\u3066\u306e\u30da\u30fc\u30b8\u306b\u5171\u901a\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8868\u793a\u3059\u308b\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u305f wp-content\/themes\/(\u30c6\u30fc\u30de)\/sidebar.php \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<li>get_sidebar()\u95a2\u6570\u3092\u30b3\u30fc\u30eb\u3057\u307e\u3059\u3002\n<pre class=\"nums:false lang:default decode:true \" >&lt;?php get_sidebar(); ?&gt;<\/pre>\n<\/li>\n<\/ol>\n<p>\u6b21\u306b\u3001\u30da\u30fc\u30b801 \u3068\u30da\u30fc\u30b802 \u306b\u5225\u3005\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n\u30da\u30fc\u30b801 \u306b\u306f sidebar-pat01.php \u306b\u8a18\u8ff0\u3055\u308c\u305f\u5185\u5bb9\u3092\u3001\u30da\u30fc\u30b802\u306b\u306f sidebar-pat02.php \u306b\u8a18\u8ff0\u3055\u308c\u305f\u5185\u5bb9\u3092\u8868\u793a\u3059\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>wp-content\/themes\/(\u30c6\u30fc\u30de)\/sidebar-pat01.php \u304a\u3088\u3073 wp-content\/themes\/(\u30c6\u30fc\u30de)\/sidebar-pat02.php \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<li>\u5f15\u6570\u3092\u6307\u5b9a\u3057\u3066 get_sidebar()\u95a2\u6570\u3092\u30b3\u30fc\u30eb\u3057\u307e\u3059\u3002\u5f15\u6570\u306f\u3001sidebar-{name}.php \u306e {name} \u306e\u90e8\u5206\u306b\u306a\u308a\u307e\u3059\u3002\n<pre class=\"nums:false lang:default decode:true \" >&lt;?php\r\nif( is_page('\u30da\u30fc\u30b801') ):\r\nget_sidebar(pat01);\r\nelse:\r\nget_sidebar(pat02);\r\nendif\r\n?&gt;\r\n<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305a\u3001\u5168\u3066\u306e\u30da\u30fc\u30b8\u306b\u5171\u901a\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8868\u793a\u3059\u308b\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u305f wp-content\/themes\/(\u30c6\u30fc\u30de)\/sidebar.php \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 get_sidebar()\u95a2\u6570\u3092\u30b3\u30fc\u30eb [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-wordpress","wpautop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u307e\u305a\u3001\u5168\u3066\u306e\u30da\u30fc\u30b8\u306b\u5171\u901a\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8868\u793a\u3059\u308b\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u305f wp-content\/themes\/(\u30c6\u30fc\u30de)\/sidebar.php \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 get_sidebar()\u95a2\u6570\u3092\u30b3\u30fc\u30eb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/crestboz\" \/>\n<meta property=\"article:published_time\" content=\"2015-03-27T06:42:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-17T08:10:07+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@crestboz\" \/>\n<meta name=\"twitter:site\" content=\"@crestboz\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f\",\"datePublished\":\"2015-03-27T06:42:38+00:00\",\"dateModified\":\"2016-09-17T08:10:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/\"},\"wordCount\":25,\"publisher\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#organization\"},\"articleSection\":[\"WordPress\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/\",\"name\":\"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#website\"},\"datePublished\":\"2015-03-27T06:42:38+00:00\",\"dateModified\":\"2016-09-17T08:10:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/www.crestboz.co.jp\/techblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#website\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/\",\"name\":\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0\",\"description\":\"IT\u95a2\u9023\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u306b\u95a2\u3057\u3066\u8abf\u67fb\u3057\u305f\u3053\u3068\u306a\u3069\u3092\u516c\u958b\u3059\u308b\u30d6\u30ed\u30b0\u3067\u3059\",\"publisher\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.crestboz.co.jp\/techblog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#organization\",\"name\":\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png\",\"contentUrl\":\"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png\",\"width\":387,\"height\":387,\"caption\":\"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e\"},\"image\":{\"@id\":\"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/crestboz\",\"https:\/\/x.com\/crestboz\"]},{\"@type\":\"Person\",\"@id\":\"\",\"url\":\"https:\/\/www.crestboz.co.jp\/techblog\/archives\/author\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/","og_locale":"ja_JP","og_type":"article","og_title":"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","og_description":"\u307e\u305a\u3001\u5168\u3066\u306e\u30da\u30fc\u30b8\u306b\u5171\u901a\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8868\u793a\u3059\u308b\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u305f wp-content\/themes\/(\u30c6\u30fc\u30de)\/sidebar.php \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 get_sidebar()\u95a2\u6570\u3092\u30b3\u30fc\u30eb [&hellip;]","og_url":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/","og_site_name":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/crestboz","article_published_time":"2015-03-27T06:42:38+00:00","article_modified_time":"2016-09-17T08:10:07+00:00","twitter_card":"summary_large_image","twitter_creator":"@crestboz","twitter_site":"@crestboz","twitter_misc":{"\u57f7\u7b46\u8005":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/#article","isPartOf":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/"},"author":{"name":"","@id":""},"headline":"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f","datePublished":"2015-03-27T06:42:38+00:00","dateModified":"2016-09-17T08:10:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/"},"wordCount":25,"publisher":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#organization"},"articleSection":["WordPress"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/","url":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/","name":"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f - \u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#website"},"datePublished":"2015-03-27T06:42:38+00:00","dateModified":"2016-09-17T08:10:07+00:00","breadcrumb":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/150\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/www.crestboz.co.jp\/techblog\/"},{"@type":"ListItem","position":2,"name":"WordPress\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u30da\u30fc\u30b8\u6bce\u306b\u5909\u66f4\u3059\u308b\u306b\u306f"}]},{"@type":"WebSite","@id":"https:\/\/www.crestboz.co.jp\/techblog\/#website","url":"https:\/\/www.crestboz.co.jp\/techblog\/","name":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba::\u6280\u8853\u8005\u30d6\u30ed\u30b0","description":"IT\u95a2\u9023\u306e\u6280\u8853\u7684\u306a\u3053\u3068\u306b\u95a2\u3057\u3066\u8abf\u67fb\u3057\u305f\u3053\u3068\u306a\u3069\u3092\u516c\u958b\u3059\u308b\u30d6\u30ed\u30b0\u3067\u3059","publisher":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.crestboz.co.jp\/techblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.crestboz.co.jp\/techblog\/#organization","name":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e","url":"https:\/\/www.crestboz.co.jp\/techblog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/","url":"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png","contentUrl":"https:\/\/www.crestboz.co.jp\/techblog\/wp-content\/uploads\/2019\/12\/robot.png","width":387,"height":387,"caption":"\u30af\u30ec\u30b9\u30c8\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e"},"image":{"@id":"https:\/\/www.crestboz.co.jp\/techblog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/crestboz","https:\/\/x.com\/crestboz"]},{"@type":"Person","@id":"","url":"https:\/\/www.crestboz.co.jp\/techblog\/archives\/author\/"}]}},"_links":{"self":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":1,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/posts\/150\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crestboz.co.jp\/techblog\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}