{"id":1625,"date":"2018-10-15T16:03:33","date_gmt":"2018-10-15T07:03:33","guid":{"rendered":"https:\/\/www.dogrow.net\/php\/?p=1625"},"modified":"2018-10-16T18:16:31","modified_gmt":"2018-10-16T09:16:31","slug":"blog52","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/php\/blog52\/","title":{"rendered":"(52) \u3010WORDPRESS\u3011\u72ec\u81ea\u30c6\u30fc\u30de\u3092\u4f5c\u6210\u3059\u308b\u3002\u300e\u7b2c1\u56de \u5165\u9580\u7de8\u300f"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>WORDPRESS\u3067\u30d6\u30ed\u30b0\u3092\u7acb\u3061\u4e0a\u3052\u305f\u76f4\u5f8c\u306b\u3084\u308b\u3053\u3068\u3001<br \/>\n\u305d\u308c\u306f\u30c6\u30fc\u30de\u306e\u9078\u629e\u3060\u3002<\/p>\n<p>\u6570\u5343\u3082\u3042\u308b\u30c6\u30fc\u30de\u306e\u4e2d\u304b\u3089\u304a\u6c17\u306b\u5165\u308a\u306e\u4e00\u3064\u3092\u898b\u3064\u3051\u308b\u306e\u306f\u7d50\u69cb\u5927\u5909\u3002<br \/>\n\u3053\u308c\u306b\uff11\u6642\u9593\u4ee5\u4e0a\u3082\u8cbb\u3084\u3059\u3053\u3068\u3082\u3042\u308b\u3002<\/p>\n<p>\u305d\u3053\u3067&#8230;<br \/>\n<span class=\"my_fc_deeppink my_fs_big2\">\u81ea\u5206\u306e\u597d\u307f\u306b\u5408\u3046\u7269\u3092\u81ea\u5206\u3067\u4f5c\u3063\u3066\u3057\u307e\u3048\u3070\u3088\u3044\u306e\u3067\u306f\uff1f<\/span><\/p>\n<p>\u3068\u601d\u3044\u3001\u4f5c\u308a\u65b9\u3092\u5b66\u7fd2\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<h1 class=\"my_h\">2. \u5b9f\u88c5\u65b9\u91dd<\/h1>\n<p>1) \u521d\u3081\u3066\u306a\u306e\u3067\u591a\u304f\u3092\u671b\u307e\u306a\u3044\u3002\u3053\u308c\u3060\u3051\u3067\u304d\u308c\u3070\u3088\u3044\u3002<br \/>\n\u3000\u30fb\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3067\u304d\u308b\u3053\u3068\u3002<br \/>\n\u3000\u30fb\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u8868\u793a\u3067\u304d\u308b\u3053\u3068\u3002<br \/>\n\u3000\u30fb\u6295\u7a3f\u8a18\u4e8b\u30da\u30fc\u30b8\u3092\u8868\u793a\u3067\u304d\u308b\u3053\u3068\u3002<br \/>\n\u3000\u30fb\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u4e00\u3064\u8868\u793a\u3067\u304d\u308b\u3053\u3068\u3002<br \/>\n2) \u30b9\u30de\u30db\u7528\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8003\u616e\u3057\u306a\u3044\u3002\uff08\u975e\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\uff09<\/p>\n<h1 class=\"my_h\">3. \u3084\u3063\u3066\u307f\u308b\uff01<\/h1>\n<h2 class=\"my_h\">Step1 : \u30c6\u30fc\u30de\u306b\u5fc5\u8981\u306a\u7269\u3092\u63c3\u3048\u308b\u3002<\/h2>\n<p>\u300c\u30c6\u30fc\u30de\u300d\u306b\u6c42\u3081\u3089\u308c\u308b\u4ee5\u4e0b\u306e\uff18\u500b\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3002<br \/>\n\u30fbstyle.css<br \/>\n\u30fbfunctions.php<br \/>\n\u30fbheader.php : \u30d8\u30c3\u30c0\u8868\u793a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<br \/>\n\u30fbfooter.php : \u30d5\u30c3\u30bf\u8868\u793a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<br \/>\n\u30fbsidebar.php : \u30b5\u30a4\u30c9\u30d0\u30fc\u8868\u793a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<br \/>\n\u30fbindex.php :<br \/>\n\u30fbpage.php : \u56fa\u5b9a\u30da\u30fc\u30b8\u8868\u793a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<br \/>\n\u30fbsingle.php : \u6295\u7a3f\u30da\u30fc\u30b8\u8868\u793a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/p>\n<h3 class=\"my_h\">1) style.css<\/h2>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n@charset &quot;UTF-8&quot;;\r\n\r\n*{\r\n  color: #333;\r\n  box-sizing: border-box;\r\n}\r\nhtml{\r\n  font-size: 16px;\r\n  line-height: 1.5;\r\n}\r\n\r\n\/******************\r\n \u30ec\u30a4\u30a2\u30a6\u30c8\r\n*******************\/\r\n.header-inner,\r\n.container,\r\n.footer-inner,\r\n.header-nav {\r\n  width: 1300px;\r\n  margin-right: auto;   \/* centering *\/\r\n  margin-left: auto;    \/* centering *\/\r\n}\r\n.contents {\r\n  float: left;\r\n  width: 75%;\r\n}\r\n.sidebar {\r\n  float: left;\r\n  width: 25%;\r\n}\r\n.container:after {\r\n  display: block;\r\n  clear: both;\r\n  content: '';\r\n}\r\n.sidebar-inner{\r\n  list-style-type: none;\r\n}\r\n\r\n\/******************\r\n \u30b5\u30a4\u30c8\u30fb\u30bf\u30a4\u30c8\u30eb\r\n*******************\/\r\n.site-title h1 {\r\n  font-size: 2.5rem;\r\n  margin: 0;\r\n  padding: 1rem;\r\n}\r\n.site-title h1 a {\r\n  display: block;\r\n  text-decoration: none;\r\n  color: #333;\r\n}\r\n<\/pre>\n<h3 class=\"my_h\">2) functions.php<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\n\/\/ \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\r\nadd_theme_support('title-tag');\r\n\r\n\/\/ \u30b3\u30e1\u30f3\u30c8\u30d5\u30a9\u30fc\u30e0\u3001\u691c\u7d22\u30d5\u30a9\u30fc\u30e0\u3001\u30b3\u30e1\u30f3\u30c8\u30ea\u30b9\u30c8\u3001\u30ae\u30e3\u30e9\u30ea\u30fc\u3067HTML5\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u306e\u4f7f\u7528\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002\r\nadd_theme_support('html5', array('comment-list', 'comment-form', 'search-form', 'gallery', 'caption'));\r\n\r\n\/\/ header\u3067\u306e\u6295\u7a3f\u3068\u30b3\u30e1\u30f3\u30c8\u306eRSS\u30d5\u30a3\u30fc\u30c9\u306e\u30ea\u30f3\u30af\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\r\nadd_theme_support('automatic-feed-links');\r\n\r\n\/\/ custom menu\r\nregister_nav_menu('header-nav', 'Header Navigation');\r\n\r\n\/\/\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u8ffd\u52a0\r\nfunction widgetarea_init() {\r\n  $args = array(\r\n    'name'          =&gt; 'MySideBar',\r\n    'id'            =&gt; 'side-widget',\r\n    'description'   =&gt; '',\r\n    'class'         =&gt; '',\r\n    'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;',\r\n    'after_widget'  =&gt; '&lt;\/li&gt;',\r\n    'before_title'  =&gt; '&lt;h2 class=&quot;widgettitle&quot;&gt;',\r\n    'after_title'   =&gt; '&lt;\/h2&gt;' );\r\n  register_sidebar($args);\r\n}\r\nadd_action('widgets_init', 'widgetarea_init');\r\n<\/pre>\n<h3 class=\"my_h\">3) header.php<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=&quot;utf-8&quot; \/&gt;\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo get_stylesheet_uri(); ?&gt;&quot;&gt;\r\n \r\n&lt;?php wp_head(); ?&gt; &lt;!-- \u30d7\u30e9\u30b0\u30a4\u30f3\u5c55\u958b\u30a8\u30ea\u30a2 --&gt;\r\n&lt;\/head&gt;\r\n     \r\n&lt;body &lt;?php body_class(); ?&gt;&gt;\r\n&lt;header&gt;\r\n  &lt;div class=&quot;header-inner&quot;&gt;\r\n    &lt;div class=&quot;site-title&quot;&gt;\r\n      &lt;h1&gt;&lt;a href=&quot;&lt;?php echo home_url(); ?&gt;&quot;&gt;\r\n        &lt;?php bloginfo('name'); ?&gt;\r\n      &lt;\/a&gt;&lt;\/h1&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;?php\r\n  $defaults = array(\r\n    'menu'            =&gt; '',\r\n    'menu_class'      =&gt; 'menu',\r\n    'menu_id'         =&gt; '',\r\n    'container'       =&gt; 'nav',\r\n    'container_class' =&gt; 'header-nav',\r\n    'container_id'    =&gt; '',\r\n    'fallback_cb'     =&gt; 'wp_page_menu',\r\n    'before'          =&gt; '',\r\n    'after'           =&gt; '',\r\n    'link_before'     =&gt; '',\r\n    'link_after'      =&gt; '',\r\n    'echo'            =&gt; true,\r\n    'depth'           =&gt; 0,\r\n    'walker'          =&gt; '',\r\n    'theme_location'  =&gt; 'header-nav',\r\n    'items_wrap'      =&gt; '&lt;ul id=&quot;%1$s&quot; class=&quot;%2$s&quot;&gt;%3$s&lt;\/ul&gt;',\r\n  );\r\n  wp_nav_menu( $defaults );\r\n?&gt;\r\n&lt;\/header&gt;\r\n<\/pre>\n<h3 class=\"my_h\">4) footer.php<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;footer&gt;\r\n  &lt;div class=&quot;footer-inner&quot;&gt;\r\n    &lt;div class=&quot;copyright&quot;&gt;\r\n      &lt;p&gt;copyright \u00a9&lt;?php bloginfo('name'); ?&gt; All Rights Reserved.&lt;\/p&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/footer&gt;\r\n&lt;?php wp_footer(); ?&gt; &lt;!-- \u30d7\u30e9\u30b0\u30a4\u30f3\u5c55\u958b\u30a8\u30ea\u30a2 --&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h3 class=\"my_h\">5) sidebar.php<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;div class=&quot;sidebar&quot;&gt;\r\n  &lt;div class=&quot;sidebar-inner&quot;&gt;\r\n    &lt;?php dynamic_sidebar('side-widget'); ?&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3 class=\"my_h\">6) page.php<\/h2>\n<p>\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php get_header(); ?&gt; &lt;!-- header.php\u3092\u5c55\u958b --&gt;\r\n&lt;div class=&quot;container&quot;&gt;\r\n  &lt;div class=&quot;contents&quot;&gt;\r\n    &lt;?php if(have_posts()): the_post(); ?&gt;\r\n      &lt;article&gt;\r\n        &lt;div&gt;\r\n          &lt;span&gt;&lt;?php echo get_the_date(); ?&gt;&lt;\/span&gt;\r\n          &lt;?php if(has_category() ): ?&gt;\r\n            &lt;span&gt;&lt;?php echo get_the_category_list( ' ' ); ?&gt;&lt;\/span&gt;\r\n          &lt;?php endif; ?&gt;\r\n        &lt;\/div&gt;\r\n        &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;\r\n        &lt;?php the_content(); ?&gt;\r\n      &lt;\/article&gt;\r\n    &lt;?php endif; ?&gt;\r\n  &lt;\/div&gt;\r\n  &lt;?php get_sidebar(); ?&gt; &lt;!-- sidebar.php\u3092\u5c55\u958b --&gt;\r\n&lt;\/div&gt;\r\n&lt;?php get_footer(); ?&gt; &lt;!-- footer.php\u3092\u5c55\u958b --&gt;\r\n<\/pre>\n<h3 class=\"my_h\">7) single.php<\/h2>\n<p>\u6295\u7a3f\u8a18\u4e8b\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<br \/>\n<span class=\"my_fc_crimson\">\u203b\u4eca\u56de\u306f page.php\u3068\u540c\u3058<\/span><\/p>\n<h3 class=\"my_h\">8) index.php<\/h2>\n<p>archive.php, category.php, home.php, tag.php \u306a\u3069\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3001index.php\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n<span class=\"my_fc_crimson\">\u203b\u4eca\u56de\u306f page.php\u3068\u540c\u3058<\/span><\/p>\n<h2 class=\"my_h\">Step2 : \u30c6\u30fc\u30de\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h2>\n<h3 class=\"my_h\">1) \u5168\u30d5\u30a1\u30a4\u30eb\u3092 ZIP\u30d5\u30a1\u30a4\u30eb\u306b\u30d1\u30c3\u30af\u3059\u308b\u3002<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/php\/wp-content\/uploads\/2018\/10\/001-1.png\" alt=\"\" \/><\/p>\n<h3 class=\"my_h\">2) WORDPRESS\u7ba1\u7406\u753b\u9762\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/h3>\n<p>\u300c\u5916\u89b3\u300d\uff0d\u300c\u30c6\u30fc\u30de\u300d\u30e1\u30cb\u30e5\u30fc\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\n\u300c\u65b0\u898f\u8ffd\u52a0\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3002<br \/>\n\u300c\u30c6\u30fc\u30de\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/php\/wp-content\/uploads\/2018\/10\/002-1.png\" alt=\"\" \/><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u3067\u304d\u305f\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/php\/wp-content\/uploads\/2018\/10\/005.png\" alt=\"\" \/><br \/>\n\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u5e45\u3092\u72ed\u304f\u3059\u308b\u3068\u6c34\u5e73\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u304c\u51fa\u3066\u304f\u308b\u3002<\/p>\n<h1 class=\"my_h\">4. \u6240\u611f<\/h1>\n<p>\u30fb\u4e00\u5148\u305a\u975e\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u30df\u30cb\u30de\u30e0\u5b9f\u88c5\u304c\u51fa\u6765\u305f\u3002\uff08\u5c11\u3057\u9727\u304c\u6674\u308c\u305f\uff09<br \/>\n\u30fb\u4eba\u69d8\u304c\u4f5c\u3063\u305f\u4ed5\u7d44\u307f\u3092\u5229\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u304f\u306e\u3060\u304b\u3089\u3001\u307e\u3060\u307e\u3060\u672a\u77e5\u306e\u30eb\u30fc\u30eb\u3092\u899a\u3048\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<br \/>\n\u30fb\u500b\u4eba\u7684\u306b\u306f\u30b9\u30de\u30db\u8fce\u5408\u578b\u30b5\u30a4\u30c8\u304c\u597d\u304d\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306b\u306f\u5bfe\u5fdc\u3057\u306a\u3044\u304b\u3082&#8230;<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 WORDPRESS\u3067\u30d6\u30ed\u30b0\u3092\u7acb\u3061\u4e0a\u3052\u305f\u76f4\u5f8c\u306b\u3084\u308b\u3053\u3068\u3001 \u305d\u308c\u306f\u30c6\u30fc\u30de\u306e\u9078\u629e\u3060\u3002 \u6570\u5343\u3082\u3042\u308b\u30c6\u30fc\u30de\u306e\u4e2d\u304b\u3089\u304a\u6c17\u306b\u5165\u308a\u306e\u4e00\u3064\u3092\u898b\u3064\u3051\u308b\u306e\u306f\u7d50\u69cb\u5927\u5909\u3002 \u3053\u308c\u306b\uff11\u6642\u9593\u4ee5\u4e0a\u3082\u8cbb\u3084\u3059\u3053\u3068\u3082\u3042\u308b\u3002 \u305d\u3053\u3067&#038;#823\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/php\/blog52\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1625","post","type-post","status-publish","format-standard","hentry","category-theme"],"views":1737,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts\/1625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/comments?post=1625"}],"version-history":[{"count":40,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts\/1625\/revisions"}],"predecessor-version":[{"id":1680,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/posts\/1625\/revisions\/1680"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/media?parent=1625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/categories?post=1625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/php\/wp-json\/wp\/v2\/tags?post=1625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}