{"id":197,"date":"2023-02-06T16:27:52","date_gmt":"2023-02-06T07:27:52","guid":{"rendered":"https:\/\/phantom-cgray03.xyz\/?p=197"},"modified":"2023-02-07T18:28:12","modified_gmt":"2023-02-07T09:28:12","slug":"post-197","status":"publish","type":"post","link":"https:\/\/phantom-cgray03.xyz\/?p=197","title":{"rendered":"SB\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u2192WordPress\u306b\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>\u7528\u610f\u3059\u308b\u3082\u306e<\/h2>\n<ul>\n<li>\u3053\u306e\u30b5\u30a4\u30c8<\/li>\n<li>\u6295\u7a3f\u6bce\u306bCSS\/Javascript\u3092\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30c6\u30fc\u30de<\/li>\n<li>\u30d7\u30e9\u30b0\u30a4\u30f3\u300cAdvanced Editor Tools (\u65e7\u540d TinyMCE Advanced)\u300d<\/li>\n<li>(\u3042\u308b\u3068\u4fbf\u5229)\u5225\u9014\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3000\u203bVS Code,Atom,Sublime Text\u306a\u3069<\/li>\n<\/ul>\n<h2>\u5b9f\u88c5\u6e96\u5099<\/h2>\n<p>2\u70b9\u3001\u6e96\u5099\u3057\u3066\u304a\u304f\u3053\u3068\u63a8\u5968\u3002<\/p>\n<p>\u30fb\u8a18\u4e8b\u306e\u81ea\u52d5\u6574\u5f62\u7121\u52b9<br \/>\n\u30fb\u30d3\u30b8\u30e5\u30a2\u30eb\u30a8\u30c7\u30a3\u30bf\u306e\u6574\u5f62\u7121\u52b9<\/p>\n<h3>\u8a18\u4e8b\u306e\u81ea\u52d5\u6574\u5f62\u7121\u52b9<\/h3>\n<p>WordPress\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u81ea\u52d5\u6574\u5f62\u6a5f\u80fd\u304c\u3064\u3044\u3066\u304a\u308a\u3001<br \/>\n\u4ed6\u30b5\u30a4\u30c8\u306eHTML\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30da\u3057\u3066\u3082\u30ad\u30ec\u30a4\u306b\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u3042\u308b\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u81ea\u52d5\u6574\u5f62\u3092\u7121\u52b9\u5316\u3057\u3066\u304a\u304f\u306e\u304c\u7406\u60f3\u3002<br \/>\n\u305f\u3060\u3057\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/p>\n<p>\u5b9f\u88c5\u306ffunction.php\u306b\u8ffd\u8a18\u3092\u3059\u308b\u305f\u3081\u3001<br \/>\n\u904e\u53bb\u8a18\u4e8b\u306b\u3082\u5168\u3066\u81ea\u52d5\u6574\u5f62\u7121\u52b9\u304c\u9069\u7528\u3055\u308c\u308b\u305f\u3081\u3001<br \/>\n\u305d\u308c\u304c\u56f0\u308b\u5834\u5408\u306f\u3001\u4e0b\u8a18\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u81ea\u52d5\u6574\u5f62\u3092\u9069\u7528\u3055\u305b\u308b\u30da\u30fc\u30b8\u3092\u500b\u5225\u306b\u9078\u629e\u53ef\u80fd\u3002<br \/>\n<a href=\"https:\/\/pera-lab.com\/archives\/1508\">HTML\u306e\u81ea\u52d5\u6574\u5f62\u3092\u7121\u52b9\u5316\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n<p>\u904e\u53bb\u8a18\u4e8b\u304c\u306a\u3044\u7b49\u3067\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092funciton.php\u306b\u8ffd\u8a18\u3067OK\u3002<\/p>\n<pre><code>\/\/\u8a18\u4e8b\u8868\u793a\u6642\u306e\u6574\u5f62\u7121\u52b9\r\nadd_action(\r\n\t&#039;wp_head&#039;,\r\n\tfunction(){\r\n\t\tremove_filter(&#039;the_content&#039;, &#039;wpautop&#039;);\r\n\t\tremove_filter(&#039;the_excerpt&#039;, &#039;wpautop&#039;);\r\n\t}\r\n);\r\n\r\n\/\/\u30d3\u30b8\u30e5\u30a2\u30eb\u30a8\u30c7\u30a3\u30bf(TinyMCE)\u306e\u6574\u5f62\u7121\u52b9\r\nadd_filter(\r\n\t&#039;tiny_mce_before_init&#039;,\r\n\tfunction($init_array){\r\n\t\tglobal $allowedposttags;\r\n\t\t$init_array[&#039;valid_elements&#039;]          = &#039;*[*]&#039;;\r\n\t\t$init_array[&#039;extended_valid_elements&#039;] = &#039;*[*]&#039;;\r\n\t\t$init_array[&#039;valid_children&#039;]          = &#039;+a[&#039; . implode( &#039;|&#039;, array_keys( $allowedposttags ) ) . &#039;]&#039;;\r\n\t\t$init_array[&#039;indent&#039;]                  = true;\r\n\t\t$init_array[&#039;wpautop&#039;]                 = false;\r\n\t\t$init_array[&#039;force_p_newlines&#039;]        = false;\r\n\t\treturn $init_array;\r\n\t}\r\n);<\/code><\/pre>\n<p>\u203bphp\u30d5\u30a1\u30a4\u30eb\u306f\u6271\u3044\u3092\u9593\u9055\u3048\u308b\u3068\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u30b5\u30a4\u30c8\u304c\u771f\u3063\u767d\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u5fc3\u914d\u306a\u65b9\u306f\u4e88\u3081\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u308b\u3053\u3068\u63a8\u5968\u3002<\/p>\n<h3>\u30d3\u30b8\u30e5\u30a2\u30eb\u30a8\u30c7\u30a3\u30bf\u30fc\u306e\u81ea\u52d5\u6574\u5f62\u7121\u52b9<\/h3>\n<p>\u8a18\u4e8b\u7de8\u96c6\u4e2d\u3001\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u2192\u30c6\u30ad\u30b9\u30c8\u30e2\u30fc\u30c9\u306e\u5207\u308a\u66ff\u3048\u306e\u969b\u3001\u81ea\u52d5\u6574\u5f62\u304c\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u8907\u96d1\u306aHTML\u30b3\u30fc\u30c9\u3084JS\u30b3\u30fc\u30c9\u3092\u5b9f\u88c5\u3057\u305f\u969b\u306b\u826f\u304f\u8d77\u3053\u308a\u30b9\u30c8\u30ec\u30b9\u304c\u305f\u307e\u308a\u3084\u3059\u3044\u305f\u3081\u8a2d\u5b9a\u304c\u7121\u96e3\u3002<\/p>\n<p>\u57fa\u672c\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u5bfe\u5fdc\u3055\u308c\u3066\u3044\u308b\u304c\u3001<br \/>\n\u30af\u30e9\u30b7\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u308a\u3001\u30c6\u30fc\u30de\u306b\u3088\u3063\u3066\u306f\u9069\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u5ff5\u306e\u305f\u3081\u5225\u9014\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u8aac\u660e\u3002<\/p>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u300cAdvanced Editor Tools (\u65e7\u540d TinyMCE Advanced)\u300d\u3067\u81ea\u52d5\u6574\u5f62\u3092\u7121\u52b9\u306b\u3067\u304d\u308b\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u304d\u3001\u300c\u65e7\u30a8\u30c7\u30a3\u30bf\u30fc\u300d\u3092\u9078\u629e<br \/>\n\u2193<br \/>\n\u300c\u30af\u30e9\u30b7\u30c3\u30af\u30d6\u30ed\u30c3\u30af\u3068\u30af\u30e9\u30b7\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u30fc\u5185\u306e\u30d1\u30e9\u30b0\u30e9\u30d5\u30bf\u30b0\u3092\u4fdd\u6301\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b<br \/>\n\u2193<br \/>\n\u5b8c\u4e86<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-203\" src=\"https:\/\/phantom-cgray03.xyz\/wp-content\/uploads\/2023\/02\/tinyMCE-2.jpg\" alt=\"\" width=\"1500\" height=\"900\" \/>\n<p>&nbsp;<\/p>\n<h2>\u5b9f\u88c5\u65b9\u6cd5<\/h2>\n<p>\u5b9f\u88c5\u3057\u305f\u3044\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30da\u30fc\u30b8\u3092\u958b\u304d\u3001<br \/>\n\u30da\u30fc\u30b8\u4e0b\u90e8\u306eJS,HTML,CSS\u305d\u308c\u305e\u308c\u3092\u9069\u5207\u306a\u3068\u3053\u308d\u3078\u30b3\u30d4\u30da\u3059\u308b\u3060\u3051\u3067OK\u3002<br \/>\n\u305d\u306e\u969b\u3001CSS,JS\u306f\u5404\u30da\u30fc\u30b8\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3002<\/p>\n<p>\u4e00\u5ea6\u5b9f\u88c5\u3057\u3001\u30b5\u30f3\u30d7\u30eb\u3068\u9055\u3046\u70b9\u304c\u3042\u308c\u3070\u3001\u30c6\u30fc\u30de\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u65e2\u5b58\u306eclass\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u90aa\u9b54\u3057\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u6bce\u306b<br \/>\n(\u30d7\u30ed\u30d1\u30c6\u30a3\u540d):inherit;<br \/>\n\u306a\u3069\u3068\u3057\u3066\u3042\u3052\u308b\u3068\u3046\u307e\u304f\u8a00\u3063\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u610f\u3059\u308b\u3082\u306e \u3053\u306e\u30b5\u30a4\u30c8 \u6295\u7a3f\u6bce\u306bCSS\/Javascript\u3092\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30c6\u30fc\u30de \u30d7\u30e9\u30b0\u30a4\u30f3\u300cAdvanced Editor Tools (\u65e7\u540d TinyMCE Advanced)\u300d (\u3042\u308b\u3068\u4fbf\u5229)\u5225\u9014<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=197"}],"version-history":[{"count":8,"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=\/wp\/v2\/posts\/197\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phantom-cgray03.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}