{"id":21604,"date":"2021-02-26T07:16:40","date_gmt":"2021-02-25T22:16:40","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=21604"},"modified":"2024-03-04T18:14:13","modified_gmt":"2024-03-04T09:14:13","slug":"make-article","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/make-article\/","title":{"rendered":"WordPress\u81ea\u4f5c\u30c6\u30fc\u30de\u5236\u4f5c\u2464\u2502\u6295\u7a3f\u30da\u30fc\u30b8\u30fb\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u4f5c\u6210"},"content":{"rendered":"\n<p>\u81ea\u4f5c\u30c6\u30fc\u30de\u5236\u4f5c\u306e\u7b2c5\u5f3e\uff01<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u6295\u7a3f\u30da\u30fc\u30b8\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u4f5c\u6210\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306b\u306f\u30d1\u30f3\u304f\u305a\u3001\u30bf\u30a4\u30c8\u30eb\u30fb\u66f4\u65b0\u65e5\u30fb\u516c\u958b\u65e5\u30fb\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u30fb\u672c\u6587\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"p-blogParts post_content\" data-partsID=\"21663\">\n<div class=\"wp-block-group is-style-emboss_box\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"has-text-align-center\">\u30b9\u30bf\u30fc\u30bf\u30fc\u30c6\u30fc\u30de\u3092\u4f7f\u308f\u305a\u306b<br><span class=\"swl-fz u-fz-l\">WordPress\u81ea\u4f5c\u30c6\u30fc\u30de<\/span>\u3092\u5236\u4f5c\u3059\u308b<\/p>\n\n\n\n<ul class=\"swell-block-linkList is-style-default\">\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/theme-make-minimal\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2460\u6700\u77ed\u30fb\u6700\u5c0f\u69cb\u6210\u3067\u81ea\u4f5c\u30c6\u30fc\u30de\u3092\u8868\u793a\u3057\u3066\u307f\u308b<\/span><\/a><\/li>\n\n\n\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/make-header-footer\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2461\u30d8\u30c3\u30c0\u30fc\u3068\u30d5\u30c3\u30bf\u30fc\u306e\u4f5c\u6210<\/span><\/a><\/li>\n\n\n\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/make-menu-widget\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2462\u30e1\u30cb\u30e5\u30fc\u3068\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u4f5c\u6210<\/span><\/a><\/li>\n\n\n\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/make-top\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2463\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u4f5c\u6210<\/span><\/a><\/li>\n\n\n\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/make-article\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2464\u6295\u7a3f\u30da\u30fc\u30b8\u30fb\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u4f5c\u6210<\/span><\/a><\/li>\n\n\n\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/achive\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2465\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306e\u4f5c\u6210<\/span><\/a><\/li>\n\n\n\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/make-search\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2466\u691c\u7d22\u7d50\u679c\u30da\u30fc\u30b8\u306e\u4f5c\u6210<\/span><\/a><\/li>\n\n\n\n<li class=\"swell-block-linkList__item\"><a class=\"swell-block-linkList__link\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/wordpress-customize\/blog\/make-style-css\/\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-arrowCircleRight swell-block-linkList__icon -left\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z\" \/><path d=\"m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z\" \/><\/svg><span class=\"swell-block-linkList__text\">\u2467\u898b\u305f\u76ee\uff08style.css\uff09\u306e\u4f5c\u6210<\/span><\/a><\/li>\n<\/ul>\n<\/div><\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">\u30d1\u30f3\u304f\u305a\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>\u307e\u305a\u306f\u30d8\u30c3\u30c0\u30fc\u306b\u30d1\u30f3\u304f\u305a\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">functions.php<\/h3>\n\n\n\n<p>functions.php\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u3092\u53c2\u8003\u306b\u3067\u3001\u7c21\u6613\u3067\u30d1\u30f3\u304f\u305a\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type3\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">Qiita<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/qiita-user-contents.imgix.net\/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-afbab5eb44e0b055cce1258705637a91.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLXByb2ZpbGUtaW1hZ2VzLmltZ2l4Lm5ldC9odHRwcyUzQSUyRiUyRnMzLWFwLW5vcnRoZWFzdC0xLmFtYXpvbmF3cy5jb20lMkZxaWl0YS1pbWFnZS1zdG9yZSUyRjAlMkYzMDA0MzQ1JTJGODg1YjFhNDIwMzA4YWQyMjZiZDUzZjZmMWU4YjRiNGYyMTA3YjY4ZCUyRmxhcmdlLnBuZyUzRjE2Njk5NTk0Njc_aXhsaWI9cmItNC4wLjAmYXI9MSUzQTEmZml0PWNyb3AmbWFzaz1lbGxpcHNlJmJnPUZGRkZGRiZmbT1wbmczMiZzPTE0NGU2OTBkYTIzOWMxN2I0MjUyOGU0MDQyZTAxNmY4%26blend-x%3D120%26blend-y%3D467%26blend-w%3D82%26blend-h%3D82%26blend-mode%3Dnormal%26s%3Df98419f785f0d76d403a351bb4080794?ixlib=rb-4.0.0&#038;w=1200&#038;fm=jpg&#038;mark64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk2MCZoPTMyNCZ0eHQ9V29yZHByZXNzJUUzJTgxJUE3JUUzJTgzJTkxJUUzJTgzJUIzJUUzJTgxJThGJUUzJTgxJTlBJUUzJTgzJUFBJUUzJTgyJUI5JUUzJTgzJTg4JUUzJTgyJTkyJUU1JUFFJTlGJUU4JUEzJTg1JUVGJUJDJTg4JUUzJTgzJTk3JUUzJTgzJUE5JUUzJTgyJUIwJUUzJTgyJUE0JUUzJTgzJUIzJUUzJTgxJUFBJUUzJTgxJTk3JUVGJUJDJTg5JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnR4dC1jb2xvcj0lMjMxRTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LXBhZD0wJnM9YWE1MDcwNzgxNDA2MmE1MWI4ZGM5MzQ2YjRiM2MyMjU&#038;mark-x=120&#038;mark-y=112&#038;blend64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTgzOCZoPTU4JnR4dD0lNDBtYWtraWUmdHh0LWNvbG9yPSUyMzFFMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtcGFkPTAmcz00ZjY4ZjRmN2FkZTI5NzRlN2E3OTg5MGJlYjAxNWFkYw&#038;blend-x=242&#038;blend-y=480&#038;blend-w=838&#038;blend-h=46&#038;blend-fit=crop&#038;blend-crop=left%2Cbottom&#038;blend-mode=normal&#038;s=84894453c9fd6dda63a1ce6d082dd8f9\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/qiita.com\/makkie\/items\/c7597343e0d040ab08b0\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress\u3067\u30d1\u30f3\u304f\u305a\u30ea\u30b9\u30c8\u3092\u5b9f\u88c5\uff08\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3057\uff09 &#8211; Qiita<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u79c1\u304c\u30b5\u30a4\u30c8\u69cb\u7bc9\u3059\u308b\u969b\u306b\u3001\u4f7f\u7528\u3057\u3066\u3044\u308b\u300c\u30d1\u30f3\u304f\u305a\u30ea\u30b9\u30c8\u300d\u3067\u3059\u3002 \u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u7c21\u5358\u306b\u5b9f\u88c5\u306f\u51fa\u6765\u308b\u306e\u3067\u3059\u304c\u3001\u304a\u5ba2\u69d8\u306e\u30b5\u30fc\u30d0\u74b0\u5883\u306b\u3088\u3063\u3066\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u304f\u30d7\u30e9\u30b0\u30a4\u30f3&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"functions.php\" data-lang=\"PHP\"><code>\/\/ \u30d1\u30f3\u304f\u305a\u30ea\u30b9\u30c8\nfunction breadcrumb() {\n    $home = &#39;&lt;li&gt;&lt;a href=&quot;&#39; . get_bloginfo(&#39;url&#39;) . &#39;&quot;&gt;\u30c8\u30c3\u30d7&lt;\/a&gt;&lt;\/li&gt;&#39;;\n    echo &#39;&lt;ul class=&quot;breadcrumb&quot;&gt;&#39;;\n\n    \/\/ \u30c8\u30c3\u30d7\u30da\u30fc\u30b8\n    if (is_front_page()) {\n\n        \/\/ \u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\n    } else if (is_category()) {\n        $cat = get_queried_object();\n        $cat_id = $cat-&gt;parent;\n        $cat_list = array();\n        while ($cat_id != 0) {\n            $cat = get_category($cat_id);\n            $cat_link = get_category_link($cat_id);\n            array_unshift($cat_list, &#39;&lt;li&gt;&lt;a href=&quot;&#39; . $cat_link . &#39;&quot;&gt;&#39; . $cat-&gt;name . &#39;&lt;\/a&gt;&lt;\/li&gt;&#39;);\n            $cat_id = $cat-&gt;parent;\n        }\n        echo $home;\n        foreach ($cat_list as $value) {\n            echo $value;\n        }\n        the_archive_title(&#39;&lt;li&gt;&#39;, &#39;&lt;\/li&gt;&#39;);\n\n        \/\/ \u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\n    } else if (is_archive()) {\n        echo $home;\n        the_archive_title(&#39;&lt;li&gt;&#39;, &#39;&lt;\/li&gt;&#39;);\n\n        \/\/ \u6295\u7a3f\u30da\u30fc\u30b8\n    } else if (is_single()) {\n        $cat = get_the_category();\n        if (isset($cat[0]-&gt;cat_ID)) $cat_id = $cat[0]-&gt;cat_ID;\n        $cat_list = array();\n        while ($cat_id != 0) {\n            $cat = get_category($cat_id);\n            $cat_link = get_category_link($cat_id);\n            array_unshift($cat_list, &#39;&lt;li&gt;&lt;a href=&quot;&#39; . $cat_link . &#39;&quot;&gt;&#39; . $cat-&gt;name . &#39;&lt;\/a&gt;&lt;\/li&gt;&#39;);\n            $cat_id = $cat-&gt;parent;\n        }\n        echo $home;\n        foreach ($cat_list as $value) {\n            echo $value;\n        }\n        the_title(&#39;&lt;li&gt;&#39;, &#39;&lt;\/li&gt;&#39;);\n\n        \/\/ \u56fa\u5b9a\u30da\u30fc\u30b8\n    } else if (is_page()) {\n        echo $home;\n        the_title(&#39;&lt;li&gt;&#39;, &#39;&lt;\/li&gt;&#39;);\n\n        \/\/ \u691c\u7d22\u7d50\u679c\n    } else if (is_search()) {\n        echo $home;\n        echo &#39;&lt;li&gt;\u300c&#39; . get_search_query() . &#39;\u300d\u306e\u691c\u7d22\u7d50\u679c&lt;\/li&gt;&#39;;\n\n        \/\/ 404\u30da\u30fc\u30b8\n    } else if (is_404()) {\n        echo $home;\n        echo &#39;&lt;li&gt;\u30da\u30fc\u30b8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093&lt;\/li&gt;&#39;;\n    }\n    echo &#39;&lt;\/ul&gt;&#39;;\n}\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">header.php\u306b\u30b3\u30fc\u30c9\u3092\u633f\u5165<\/h3>\n\n\n\n<p>header.php\u306ebody\u306e\u4e2d\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"header.php\" data-lang=\"PHP\"><code>    &lt;div class=&quot;breadcrumb&quot;&gt;\n        &lt;?php breadcrumb(); ?&gt;\n    &lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u8868\u793a\u306e\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u8a18\u4e8b\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068\u30d1\u30f3\u304f\u305a\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img decoding=\"async\" width=\"540\" height=\"896\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_15h09_56.png\" alt=\"\" class=\"wp-image-21605\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_15h09_56.png 540w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_15h09_56-382x634.png 382w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30f3\u304f\u305a\u306e\u69cb\u9020\u5316\u30c7\u30fc\u30bf<\/h3>\n\n\n\n<p>\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u306f\u3042\u3068\u3067\u307e\u3068\u3081\u3066\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6295\u7a3f\u30da\u30fc\u30b8\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>\u30bf\u30a4\u30c8\u30eb\u30fb\u66f4\u65b0\u65e5\u30fb\u516c\u958b\u65e5\u30fb\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u30fb\u672c\u6587\u306e\u8868\u793a\u3068\u3044\u3063\u305f<\/p>\n\n\n\n<p>\u6295\u7a3f\u30da\u30fc\u30b8\u306b\u5fc5\u8981\u306a\u8981\u7d20\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b<strong>single.php<\/strong>\u306e\u4f5c\u6210\u3057\u3066\u3001\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"single.php\" data-lang=\"PHP\"><code>&lt;?php get_header(); ?&gt;\n&lt;div class=&quot;wrap&quot;&gt;\n    &lt;main id=&quot;main-content&quot;&gt;\n        &lt;?php\n        if (have_posts()) :\n            while (have_posts()) : the_post();\n        ?&gt;\n                &lt;h1 class=&quot;title&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;\n                &lt;div class=&quot;date&quot;&gt;\n                    &lt;div&gt;Release date. &lt;?php the_time(&#39;Y\/m\/d&#39;); ?&gt;&lt;\/div&gt;\n                    &lt;div&gt;Last update. &lt;?php the_modified_date(&#39;Y\/m\/d&#39;); ?&gt;&lt;\/div&gt;\n                &lt;\/div&gt;\n                &lt;?php\n                if (has_post_thumbnail()) {\n                    echo &#39;&lt;figure class=&quot;thumbnail&quot;&gt;&#39; . get_the_post_thumbnail() . &#39;&lt;\/figure&gt;&#39;;\n                }\n                ?&gt;\n                &lt;div class=&quot;content&quot;&gt;\n                    &lt;?php the_content(); ?&gt;\n                &lt;\/div&gt;\n        &lt;?php\n            endwhile;\n        endif;\n        ?&gt;\n    &lt;\/main&gt;\n&lt;\/div&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30bf\u30a4\u30c8\u30eb\u3092\u4f5c\u6210<\/h3>\n\n\n\n<p><code>the_title();<\/code>\u306e\u95a2\u6570\u3092\u4f7f\u3063\u3066\u8868\u793a\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;h1 class=&quot;title&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u516c\u958b\u65e5\u30fb\u66f4\u65b0\u65e5\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p><code>the_time('Y\/m\/d'); <\/code>\u3068<code>the_modified_date('Y\/m\/d');<\/code>\u306e\u95a2\u6570\u3092\u4f7f\u3063\u3066\u8868\u793a\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;div class=&quot;date&quot;&gt;\n    &lt;div&gt;Release date. &lt;?php the_time(&#39;Y\/m\/d&#39;); ?&gt;&lt;\/div&gt;\n    &lt;div&gt;Last update. &lt;?php the_modified_date(&#39;Y\/m\/d&#39;); ?&gt;&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p><strong>functions.php<\/strong>\u306b\u4e0b\u8a18\u3092\u8a18\u8f09\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>add_theme_support(&#39;post-thumbnails&#39;);<\/code><\/pre><\/div>\n\n\n\n<p>\u3042\u3068\u306fsingle.php\u306b\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3002<\/p>\n\n\n\n<p><code>get_the_post_thumbnail();<\/code>\u306e\u95a2\u6570\u3092\u4f7f\u3063\u3066\u8868\u793a\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>if (has_post_thumbnail()) {\n    echo &#39;&lt;figure class=&quot;thumbnail&quot;&gt;&#39; . get_the_post_thumbnail() . &#39;&lt;\/figure&gt;&#39;;\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u672c\u6587\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p><code>the_content();<\/code>\u306e\u95a2\u6570\u3092\u4f7f\u3063\u3066\u8868\u793a\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code> &lt;?php the_content(); ?&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Article\u306e\u69cb\u9020\u5316\u30c7\u30fc\u30bf<\/h3>\n\n\n\n<p>\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u306f\u3042\u3068\u3067\u307e\u3068\u3081\u3066\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6295\u7a3f\u8a18\u4e8b\u306e\u78ba\u8a8d<\/h3>\n\n\n\n<p>WordPress\u306b\u6700\u521d\u304b\u3089\u6295\u7a3f\u3055\u308c\u3066\u3044\u308b\u300cHello world!\u300d\u306e\u8a18\u4e8b\u3092\u958b\u3044\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf(1200px \u00d7 630px)\u3082\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img decoding=\"async\" width=\"812\" height=\"870\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_19h48_24-812x870.png\" alt=\"\" class=\"wp-image-21614\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_19h48_24-812x870.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_19h48_24-382x409.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_19h48_24-768x823.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-25_19h48_24.png 862w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>ingle.php\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001page.php\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5909\u66f4\u7b87\u6240\u306f\u6295\u7a3f\u8a18\u4e8b\u306e\u516c\u958b\u65e5\u3068\u66f4\u65b0\u65e5\u306e\u8a18\u8ff0\u90e8\u5206\u3092\u524a\u9664\u3057\u305f\u3060\u3051\u306e\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"page.php\" data-lang=\"PHP\"><code>&lt;?php get_header(); ?&gt;\n&lt;div class=&quot;wrap&quot;&gt;\n    &lt;main id=&quot;main-content&quot;&gt;\n        &lt;?php\n        if (have_posts()) :\n            while (have_posts()) : the_post();\n        ?&gt;\n                &lt;h1 class=&quot;title&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;\n                &lt;?php\n                if (has_post_thumbnail()) {\n                    echo &#39;&lt;figure class=&quot;thumbnail&quot;&gt;&#39; . get_the_post_thumbnail() . &#39;&lt;\/figure&gt;&#39;;\n                }\n                ?&gt;\n                &lt;div class=&quot;content&quot;&gt;\n                    &lt;?php the_content(); ?&gt;\n                &lt;\/div&gt;\n        &lt;?php\n            endwhile;\n        endif;\n        ?&gt;\n    &lt;\/main&gt;\n&lt;\/div&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u56fa\u5b9a\u8a18\u4e8b\u306b\u629c\u7c8b\u6587\u3092\u8868\u793a<\/h3>\n\n\n\n<p>meta\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u7528\u306b\u56fa\u5b9a\u8a18\u4e8b\u306b\u3082\u629c\u7c8b\u6587\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\/\/ \u56fa\u5b9a\u8a18\u4e8b\u306b\u629c\u7c8b\u6587\u3092\u8868\u793a\nadd_post_type_support(&#39;page&#39;, &#39;excerpt&#39;);<\/code><\/pre><\/div>\n\n\n\n<p>\u6700\u5f8c\u306bWordPress\u306e\u6700\u521d\u304b\u3089\u7528\u610f\u3055\u308c\u3066\u3044\u308bSample Page\u3092\u958b\u3044\u3066\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img decoding=\"async\" width=\"801\" height=\"934\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-26_07h46_38.png\" alt=\"\" class=\"wp-image-21625\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-26_07h46_38.png 801w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-26_07h46_38-382x445.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2023-02-26_07h46_38-768x896.png 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u6295\u7a3f\u30da\u30fc\u30b8\u3068\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u95a2\u6570\u304c\u591a\u3044\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3046\u3060\u3051\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u4f5c\u30c6\u30fc\u30de\u5236\u4f5c\u306e\u7b2c5\u5f3e\uff01 \u4eca\u56de\u306f\u6295\u7a3f\u30da\u30fc\u30b8\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u4f5c\u6210\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u5177\u4f53\u7684\u306b\u306f\u30d1\u30f3\u304f\u305a\u3001\u30bf\u30a4\u30c8\u30eb\u30fb\u66f4\u65b0\u65e5\u30fb\u516c\u958b\u65e5\u30fb\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u30fb\u672c\u6587\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002 \u30d1\u30f3\u304f\u305a\u306e\u4f5c\u6210 \u307e\u305a\u306f\u30d8\u30c3\u30c0\u30fc\u306b\u30d1\u30f3\u304f\u305a\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21619,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pochipp_cv_data":"","swell_btn_cv_data":"","footnotes":""},"categories":[93],"tags":[],"area":[],"class_list":["post-21604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-theme"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/21604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=21604"}],"version-history":[{"count":1,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/21604\/revisions"}],"predecessor-version":[{"id":24230,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/21604\/revisions\/24230"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/21619"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=21604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=21604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=21604"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=21604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}