{"id":112,"date":"2016-09-29T14:34:59","date_gmt":"2016-09-29T05:34:59","guid":{"rendered":"http:\/\/okamurax.com\/?p=112"},"modified":"2020-09-03T03:29:20","modified_gmt":"2020-09-02T18:29:20","slug":"wordpress-%e5%9f%ba%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=112","title":{"rendered":"WordPress \u30c6\u30fc\u30de\u4f5c\u6210\u30e1\u30e2"},"content":{"rendered":"<p>\u30fb\u4fdd\u5b58\u5148<br \/>\n<span style=\"color: #0000ff;\">wp-content\\themes<\/span><br \/>\n\u306e\u4e2d\u306b\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>\u30fb\u6700\u5c0f\u306e\u69cb\u6210<br \/>\n<span style=\"color: #0000ff;\">index.php<\/span><br \/>\n<span style=\"color: #0000ff;\">style.css<\/span><br \/>\n\u306e\uff12\u3064\u306e\u307f\u3002<\/p>\n<p>style.css\u306b\u306f\u6700\u4f4e\u9650<br \/>\n<span style=\"color: #0000ff;\">\/* Theme Name : \u30c6\u30b9\u30c8\u30c6\u30fc\u30de *\/<\/span><br \/>\n\u304c\u5fc5\u8981\u3002<\/p>\n<p>Theme Name\u4ee5\u5916\u306b\u3082\u3001<br \/>\n<span style=\"color: #0000ff;\">Theme URL<\/span><br \/>\n<span style=\"color: #0000ff;\">Description<\/span><br \/>\n<span style=\"color: #0000ff;\">Version<\/span><br \/>\n\u306a\u3069\u8a18\u8ff0\u3067\u304d\u308b\u3002<\/p>\n<p>\u30fb\u30b5\u30e0\u30cd\u30a4\u30eb<\/p>\n<p>880x660px\u3067\u3001<br \/>\n<span style=\"color: #0000ff;\">screenshot.png<\/span><br \/>\n\u3068\u3044\u3046\u753b\u50cf\u3092Themes\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u308b\u3002<\/p>\n<p>\u30fb\u30d5\u30c3\u30af<\/p>\n<p>functions.php\u306b\u66f8\u304f\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<p><span style=\"color: #0000ff;\">apply_filters()<\/span><br \/>\n<span style=\"color: #0000ff;\">add_filter()<\/span><br \/>\n<span style=\"color: #0000ff;\">do-action()<\/span><br \/>\n<span style=\"color: #0000ff;\">add_action()<\/span><\/p>\n<p>\u30fbwp_head(), wp_footer()<\/p>\n<p>&lt;\/head&gt;\u30bf\u30b0\u306e\u4e0a\u306b\u3001<br \/>\n<span style=\"color: #0000ff;\">&lt;?php wp_head(); ?&gt;<\/span><\/p>\n<p>&lt;\/body&gt;\u30bf\u30b0\u306e\u4e0a\u306b\u3001<br \/>\n<span style=\"color: #0000ff;\">&lt;?php wp_footer(); ?&gt;<\/span><\/p>\n<p>\u30fbjQuery\u306b\u3064\u3044\u3066<\/p>\n<p>WordPress\u6a19\u6e96\u306ejQuery\u3092\u547c\u3073\u51fa\u3059\u5834\u5408\u3001$\u306f\u4f7f\u308f\u305ajQuery\u3068\u7f6e\u304d\u63db\u3048\u308b\u3002<\/p>\n<p>\u30fbindex.php\u306e\u5206\u5272<\/p>\n<p><span style=\"color: #0000ff;\">get_header()<\/span><br \/>\n\u3092\u4f7f\u3046\u3068\u3001<br \/>\n<span style=\"color: #0000ff;\">header.php<\/span><br \/>\n\u3092\u547c\u3073\u51fa\u3059\u3002<\/p>\n<p><span style=\"color: #0000ff;\">get_footer()<\/span><br \/>\n\u3092\u4f7f\u3046\u3068\u3001<br \/>\n<span style=\"color: #0000ff;\">footer.php<\/span><br \/>\n\u3092\u547c\u3073\u51fa\u3059\u3002<\/p>\n<p><span style=\"color: #0000ff;\">get_sidebar()<\/span><br \/>\n\u3092\u4f7f\u3046\u3068\u3001<br \/>\n<span style=\"color: #0000ff;\">sidebar.php<\/span><br \/>\n\u3092\u547c\u3073\u51fa\u3059\u3002<\/p>\n<p>\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7a2e\u985e<\/p>\n<p><span style=\"color: #0000ff;\">home.php<\/span><br \/>\n<span style=\"color: #0000ff;\">front-page.php<\/span><br \/>\n\u30c8\u30c3\u30d7\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">archive.php<\/span><br \/>\n\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">category.php<\/span><br \/>\n\u30ab\u30c6\u30b4\u30ea\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">tag.php<\/span><br \/>\n\u30bf\u30b0\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">date.php<\/span><br \/>\n\u6295\u7a3f\u65e5\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">search.php<\/span><br \/>\n\u691c\u7d22\u7d50\u679c\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">single.php<\/span><br \/>\n\u6295\u7a3f\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">page.php<\/span><br \/>\n\u56fa\u5b9a\u30da\u30fc\u30b8<\/p>\n<p><span style=\"color: #0000ff;\">404.php<\/span><br \/>\n404\u30da\u30fc\u30b8<\/p>\n<p>\u8a72\u5f53\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u306a\u3044\u5834\u5408index.php\u3092\u4f7f\u3046\u3002<\/p>\n<p>\u30fb\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30d7<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\nquery_posts('posts_per_page=10');\r\n \r\nif(have_posts()):\r\n\twhile(have_posts()):\r\n\t\tthe_post();\r\n\t\techo \"&lt;h1&gt;\";\r\n\t\tthe_time('Y-m-d');\r\n\t\techo \"&lt;a href='\";\r\n\t\tthe_permalink();\r\n\t\techo \"'&gt;\";\r\n\t\tthe_title();\r\n\t\techo \"&lt;\/a&gt;&lt;\/h1&gt;\";\r\n\t\techo \"&lt;br&gt;\";\r\n\t\techo \"&lt;section&gt;\";\r\n\t\tthe_content();\r\n\t\techo \"&lt;\/section&gt;\";\r\n\tendwhile;\r\nendif;\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u30da\u30fc\u30b8\u5224\u5b9a\u306e\u95a2\u6570<\/h2>\n<pre class=\"lang:php decode:true\">is_home() \/\/\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\r\n\r\nis_category(),is_archive() \/\/\u30ab\u30c6\u30b4\u30ea\u5225\u30a2\u30fc\u30ab\u30a4\u30d6\r\n\r\nis_tag(),is_archive() \/\/\u30bf\u30b0\u5225\u30a2\u30fc\u30ab\u30a4\u30d6\r\n\r\nis_date(),is_archive() \/\/\u6295\u7a3f\u65e5\u5225\u30a2\u30fc\u30ab\u30a4\u30d6 \r\n\r\nis_month(),is_date(),is_archive()\/\/\u6708\u5225\u30a2\u30fc\u30ab\u30a4\u30d6\r\n\r\nis_year(),is_date(),is_archive() \/\/\u5e74\u5225\u30a2\u30fc\u30ab\u30a4\u30d6\r\n\r\nis_search() \/\/\u691c\u7d22\u7d50\u679c\r\n\r\nis_single() \/\/\u6295\u7a3f\r\n\r\nis_page() \/\/\u56fa\u5b9a\r\n\r\nis_404() \/\/404\r\n\r\n<\/pre>\n<h2>\u30d1\u30fc\u30c4\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u547c\u3073\u51fa\u3057\u65b9<\/h2>\n<pre class=\"lang:php decode:true \">get_header()\r\n\r\nget_sidebar()\r\n\r\nget_footer()\r\n\r\nget_template_part(\u201cxxx.php\u201d)\r\n\r\n<\/pre>\n<h2>\u30c6\u30f3\u30d7\u30ec\u30bf\u30b0<\/h2>\n<pre class=\"lang:php decode:true \">bloginfo(\u201cname\u201d)\u3000\/\/\u30b5\u30a4\u30c8\u30bf\u30a4\u30c8\u30eb\r\n\r\nbloginfo(\u201cdescription\u201d)\u3000\/\/\u30ad\u30e3\u30c3\u30c1\u30d5\u30ec\u30fc\u30ba\r\n\r\nhome_url()\u3000\/\/\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306eURL\r\n\r\nwp_title()\u3000\/\/\u73fe\u5728\u306e\u30da\u30fc\u30b8\u30bf\u30a4\u30c8\u30eb\r\n\r\nget_template_directory_uri()\u3000\/\/\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\r\n\r\nget_stylesheet_uri()\u3000\/\/\u30c6\u30fc\u30de\u3067\u4f7f\u308f\u308c\u3066\u3044\u308bCSS\r\n\r\n\/\/\u4ee5\u4e0b\u306f\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u5229\u7528\u3059\u308b\u3002\r\n\r\nthe_title()\u3000\/\/\u6295\u7a3f\u306e\u30bf\u30a4\u30c8\u30eb\r\n\r\nthe_permalink()\u3000\/\/\u30d1\u30fc\u30de\u30ea\u30f3\u30af\r\n\r\nhas_post_thumbnail() \/\/\u6295\u7a3f\u306b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u304c\u3042\u308b\u304b\r\n\r\nthe_post_thumbnail()\u3000\/\/\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u306eimg\u30bf\u30b0\r\n\r\nthe_category()\u3000\/\/\u5c5e\u3059\u308b\u30ab\u30c6\u30b4\u30ea\r\n\r\nthe_time()\u3000\/\/\u6295\u7a3f\u65e5\u6642\r\n\r\nthe_content()\u3000\/\/\u672c\u6587\r\n\r\nthe_excerpt() \/\/\u629c\u7c8b\r\n\r\n<\/pre>\n<h2><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\u30fb\u4fdd\u5b58\u5148 wp-content\\themes \u306e\u4e2d\u306b\u4f5c\u6210\u3059\u308b\u3002 \u30fb\u6700\u5c0f\u306e\u69cb\u6210 index.php style.css \u306e\uff12\u3064\u306e\u307f\u3002 style.css\u306b\u306f\u6700\u4f4e\u9650 \/* Theme Name : \u30c6\u30b9\u30c8\u30c6\u30fc\u30de *\/ \u304c\u5fc5\u8981 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=112\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;WordPress \u30c6\u30fc\u30de\u4f5c\u6210\u30e1\u30e2&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[85],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-1","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":12,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}