{"id":188,"date":"2022-07-13T15:24:49","date_gmt":"2022-07-13T06:24:49","guid":{"rendered":"http:\/\/gaku-on.com\/?p=188"},"modified":"2022-07-13T16:38:17","modified_gmt":"2022-07-13T07:38:17","slug":"%e8%87%aa%e4%bd%9c%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e6%a4%9c%e7%b4%a2%e3%80%802","status":"publish","type":"post","link":"http:\/\/gaku-on.com\/?p=188","title":{"rendered":"\u81ea\u4f5c\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u691c\u7d22\u30002"},"content":{"rendered":"\n<p>\u307e\u305a\u306f\u30d5\u30a9\u30fc\u30e0\u90e8\u5206\u3000\u30c6\u30fc\u30de\u7684\u306a\u3068\u308d\u3053\u306b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div id=\"search\"&gt;\n&lt;form method=\"get\" action=\"&lt;?php bloginfo( 'url' ); ?&gt;\"&gt;\n\n &lt;div class=\"kensakutitle\"&gt;\u8b1b\u5ea7\u7a2e\u985e&lt;\/div&gt;\n\n    \n      &lt;?php $cats = get_categories(''); if ($cats) : ?&gt;\n    &lt;?php foreach ( $cats as $cat ): ?&gt;\n        &lt;div class=\"search-checkbox\"&gt;\n        &lt;label&gt;&lt;input type=\"radio\" name=\"cat\" value=\"&lt;?php echo $cat-&gt;cat_ID; ?&gt;\"&gt;&lt;?php echo esc_html( $cat-&gt;name ); ?&gt;&lt;\/label&gt;\n        &lt;\/div&gt;\n    &lt;?php endforeach; ?&gt;\n    &lt;?php endif; ?&gt;\n    \n    \n    \n &lt;div class=\"kensakutitle\"&gt;\u5730\u57df\u3092\u9078\u3093\u3067\u4e0b\u3055\u3044&lt;\/div&gt;\n &lt;div&gt;\n&lt;?php $tags = get_tags(''); if ( $tags ) : ?&gt;\n&lt;?php\n $checkboxes = '';\n foreach($tags as $tag) :\n $checkboxes .='&lt;input type=\"checkbox\" name=\"tag&#91;]\" value=\"'.$tag -&gt; slug.'\" id=\"tag-'.$tag-&gt;tag_id.'\" \/&gt;&lt;label for=\"tag-'.$tag-&gt;tag_id.'\"&gt;'.$tag-&gt;name.'&lt;\/label&gt;'.'&amp;nbsp;';\n endforeach;\n print $checkboxes;\n ?&gt;\n &lt;\/div&gt;\n &lt;div&gt;\n\n &lt;?php endif; ?&gt;\n &lt;input id=\"submit\" type=\"submit\" value=\"\u691c\u7d22\" \/&gt;&lt;\/div&gt;\n&lt;\/form&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p>\u30a2\u30fc\u30ab\u30a4\u30d6\uff50\uff48\uff50\u306b\u4ee5\u4e0b\u3092\u307e\u308b\u3063\u3068\u30b3\u30d4\u30da\u3000\u203b\u3044\u3089\u3093\u304b\u3082\u3057\u308c\u3093<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/**\n * The template for displaying archive pages.\n *\n * @link https:\/\/codex.wordpress.org\/Template_Hierarchy\n *\n * @package wpindex\n *\/\n\nget_header(1); ?&gt;\n\n\t&lt;div id=\"primary\" class=\"content-area\"&gt;\n\t\t&lt;main2 id=\"main\" class=\"site-main\" role=\"main\"&gt;\n\n\t\t&lt;?php\n\t\tif ( have_posts() ) : ?&gt;\n\n\t\t\t&lt;header class=\"page-header\"&gt;\n\t\t\t\t&lt;?php\n\t\t\t\t\tthe_archive_title( '&lt;h1 class=\"page-title\"&gt;', '&lt;\/h1&gt;' );\n\t\t\t\t\tthe_archive_description( '&lt;div class=\"taxonomy-description\"&gt;', '&lt;\/div&gt;' );\n\t\t\t\t?&gt;\n\t\t\t&lt;\/header&gt;&lt;!-- .page-header --&gt;\n\n\t\t\t&lt;?php\n\t\t\t\/* Start the Loop *\/\n\t\t\twhile ( have_posts() ) : the_post();\n\n\t\t\t\t\/*\n\t\t\t\t * Include the Post-Format-specific template for the content.\n\t\t\t\t * If you want to override this in a child theme, then include a file\n\t\t\t\t * called content-___.php (where ___ is the Post Format name) and that will be used instead.\n\t\t\t\t *\/\n\t\t\t\tget_template_part( 'template-parts\/content', get_post_format() );\n\n\t\t\tendwhile;\n\n\t\t\tthe_posts_navigation();\n\n\t\telse :\n\n\t\t\tget_template_part( 'template-parts\/content', 'none' );\n\n\t\tendif; ?&gt;\n\n\t\t&lt;\/main&gt;&lt;!-- #main --&gt;\n\t&lt;\/div&gt;&lt;!-- #primary --&gt;\n&lt;?php\nget_sidebar();\n?&gt;\n&lt;\/div&gt;\n&lt;?php\n\nget_footer();\n<\/code><\/pre>\n\n\n\n<p>content.php\u3092\u4ee5\u4e0b\u306b\u307e\u308b\u3063\u3068\u30b3\u30d4\u30da<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/**\n * Template part for displaying posts\n *\n * @link https:\/\/developer.wordpress.org\/themes\/basics\/template-hierarchy\/\n *\n * @package index000\n *\/\n\n?&gt;\n\n&lt;article id=\"post-&lt;?php the_ID(); ?&gt;\" &lt;?php post_class(); ?&gt;&gt;\n\t\t&lt;header class=\"entry-header\"&gt;\n\t\t\t&lt;?php the_post_thumbnail(); ?&gt;\n\t\t&lt;?php\n\t\t\tif ( is_single() ) {\n\t\t\t\tthe_title( '&lt;h1 class=\"entry-title\"&gt;', '&lt;\/h1&gt;' );\n\t\t\t} else {\n\t\t\t\tthe_title( '&lt;h2 class=\"entry-title\"&gt;&lt;a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\"&gt;', '&lt;\/a&gt;&lt;\/h2&gt;' );\n\t\t\t}\n\n\t\tif ( 'post' === get_post_type() ) : ?&gt;\n\t\t&lt;!-- .entry-meta --&gt;\n\t\t&lt;?php\n\t\tendif; ?&gt;\n\t&lt;\/header&gt;&lt;!-- .entry-header --&gt;\n\n\n&lt;\/article&gt;&lt;!-- #post-&lt;?php the_ID(); ?&gt; --&gt;\n<\/code><\/pre>\n\n\n\n<p>\u6295\u7a3f\u6570\u306f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u7ba1\u7406\u753b\u9762\u2192\u8a2d\u5b9a\u304b\u3089\u3067OK<\/p>\n\n\n\n<p>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u90e8\u5206\u3092\u6a2a\u4e26\u3073\u306fCSS\u306b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.search-checkbox{\r\n    display: inline-block;\r\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305a\u306f\u30d5\u30a9\u30fc\u30e0\u90e8\u5206\u3000\u30c6\u30fc\u30de\u7684\u306a\u3068\u308d\u3053\u306b \u30a2\u30fc\u30ab\u30a4\u30d6&hellip;<\/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-188","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/gaku-on.com\/index.php?rest_route=\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gaku-on.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gaku-on.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gaku-on.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gaku-on.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":3,"href":"http:\/\/gaku-on.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":191,"href":"http:\/\/gaku-on.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/191"}],"wp:attachment":[{"href":"http:\/\/gaku-on.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gaku-on.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gaku-on.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}