
{"id":7316,"date":"2019-05-24T07:24:56","date_gmt":"2019-05-23T22:24:56","guid":{"rendered":"https:\/\/tetraup.com\/news_topics\/archives\/7316"},"modified":"2025-02-26T17:35:10","modified_gmt":"2025-02-26T08:35:10","slug":"wordpress-functions-guide2","status":"publish","type":"post","link":"https:\/\/tetraup.com\/news_topics\/column\/wordpress-functions-guide2\/","title":{"rendered":"WordPress\u521d\u5fc3\u8005\u5fc5\u898b\uff01\u3088\u304f\u4f7f\u3046\u95a2\u6570\u307e\u3068\u3081\u3010\u30d6\u30ed\u30b0\u7de8\uff12\u3011"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"700\" src=\"https:\/\/tetraup.com\/news_topics\/wp-content\/uploads\/2019\/05\/WordPress\u521d\u5fc3\u8005\u5fc5\u898b\uff01\u3088\u304f\u4f7f\u3046\u95a2\u6570\u307e\u3068\u3081\u3010\u30d6\u30ed\u30b0\u7de81\u3011.png\" alt=\"WordPress\u521d\u5fc3\u8005\u5fc5\u898b\uff01\u3088\u304f\u4f7f\u3046\u95a2\u6570\u307e\u3068\u3081\u3010\u30d6\u30ed\u30b0\u7de81\u3011\" class=\"wp-image-9361\"\/><\/figure>\n\n\n\n<p>\u2193\u524d\u56de\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3044\u306a\u3044\u65b9\u306f\u3053\u3061\u3089\u304b\u3089<\/p>\n\n\n\n<a class=\"link\" href=\"https:\/\/tetraup.com\/news_topics\/column\/wordpress-functions-guide1\">WordPress\u521d\u5fc3\u8005\u5fc5\u898b\uff01\u3088\u304f\u4f7f\u3046\u95a2\u6570\u307e\u3068\u3081\u3010\u30d6\u30ed\u30b0\u7de8\uff11\u3011<\/a>\n\n\n\n<p>\u524d\u56de\u306e\u7d9a\u304d\u304b\u3089\u59cb\u3081\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\uff01\u3000<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;ul&gt;\n  &lt;?php\n  $args = array(\n    'posts_per_page' =&gt; 8,\n    'orderby' =&gt; 'date',\n    'paged' =&gt; $paged\n  );\n  $my_query = new WP_Query($args);\n\n  if ($my_query-&gt;have_posts()) :while ($my_query -&gt; have_posts()) :$my_query -&gt; the_post(); ?&gt;\n    &lt;li&gt;\n      &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;\n        &lt;?php the_post_thumbnail('medium'); ?&gt;\n        &lt;p&gt;\n        &lt;?php\n        if(mb_strlen($post-&gt;post_title,'UTf-8')&gt;40){\n          $title= mb_substr($post-&gt;post_title, 0, 40, 'UTF-8');\n          echo $title.'...';\n        } else { \n          echo $post-&gt;post_title;\n        } ?&gt;\n      &lt;\/p&gt;\n        &lt;p class=&quot;excerpt&quot;&gt;&lt;?php echo get_the_excerpt(); ?&gt;&lt;\/p&gt;\n        &lt;time&gt;&lt;?php the_time('Y.m.d'); ?&gt;&lt;\/time&gt;\n      &lt;\/a&gt;\n      &lt;p&gt;&lt;?php the_category(' '); ?&gt;&lt;\/p&gt;\n    &lt;\/li&gt;\n  &lt;?php endwhile;else: ?&gt;\n    \u6295\u7a3f\u304c\u3042\u308a\u307e\u305b\u3093\n  &lt;?php endif;wp_reset_postdata(); ?&gt;\n&lt;\/ul&gt;&lt;\/pre&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;ul&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  &lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">$args<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">array<\/span><span style=\"color: #D4D4D4\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #CE9178\">&#39;posts_per_page&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #B5CEA8\">8<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #CE9178\">&#39;orderby&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;date&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #CE9178\">&#39;paged&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #9CDCFE\">$paged<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  );<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">$my_query<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #569CD6\">new<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">WP_Query<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$args<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (<\/span><span style=\"color: #9CDCFE\">$my_query<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #DCDCAA\">have_posts<\/span><span style=\"color: #D4D4D4\">()) :<\/span><span style=\"color: #C586C0\">while<\/span><span style=\"color: #D4D4D4\"> (<\/span><span style=\"color: #9CDCFE\">$my_query<\/span><span style=\"color: #D4D4D4\"> -&gt; <\/span><span style=\"color: #DCDCAA\">have_posts<\/span><span style=\"color: #D4D4D4\">()) :<\/span><span style=\"color: #9CDCFE\">$my_query<\/span><span style=\"color: #D4D4D4\"> -&gt; <\/span><span style=\"color: #DCDCAA\">the_post<\/span><span style=\"color: #D4D4D4\">(); ?&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    &lt;li&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">      &lt;a href=<\/span><span style=\"color: #CE9178\">&quot;&lt;?php the_permalink(); ?&gt;&quot;<\/span><span style=\"color: #D4D4D4\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        &lt;?php <\/span><span style=\"color: #DCDCAA\">the_post_thumbnail<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;medium&#39;<\/span><span style=\"color: #D4D4D4\">); ?&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        &lt;p&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        &lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #DCDCAA\">mb_strlen<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$post<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">post_title<\/span><span style=\"color: #D4D4D4\">,<\/span><span style=\"color: #CE9178\">&#39;UTf-8&#39;<\/span><span style=\"color: #D4D4D4\">)&gt;<\/span><span style=\"color: #B5CEA8\">40<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">          <\/span><span style=\"color: #9CDCFE\">$title<\/span><span style=\"color: #D4D4D4\">= <\/span><span style=\"color: #DCDCAA\">mb_substr<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$post<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">post_title<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">40<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">&#39;UTF-8&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">          <\/span><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$title<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #CE9178\">&#39;...&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        } <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> { <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">          <\/span><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$post<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">post_title<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        } ?&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">      &lt;\/p&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        &lt;p <\/span><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">&quot;excerpt&quot;<\/span><span style=\"color: #D4D4D4\">&gt;&lt;?php <\/span><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">get_the_excerpt<\/span><span style=\"color: #D4D4D4\">(); ?&gt;&lt;\/p&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        &lt;time&gt;&lt;?php <\/span><span style=\"color: #DCDCAA\">the_time<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;Y.m.d&#39;<\/span><span style=\"color: #D4D4D4\">); ?&gt;&lt;\/time&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">      &lt;\/a&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">      &lt;p&gt;&lt;?php <\/span><span style=\"color: #DCDCAA\">the_category<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39; &#39;<\/span><span style=\"color: #D4D4D4\">); ?&gt;&lt;\/p&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    &lt;\/li&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  &lt;?php <\/span><span style=\"color: #C586C0\">endwhile<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\">: ?&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    \u6295\u7a3f\u304c\u3042\u308a\u307e\u305b\u3093<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  &lt;?php <\/span><span style=\"color: #C586C0\">endif<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #DCDCAA\">wp_reset_postdata<\/span><span style=\"color: #D4D4D4\">(); ?&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&lt;\/ul&gt;&lt;\/pre&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4eca\u56de\u306f12\u884c\u76ee\u4ee5\u964d\u304b\u3089\u306e\u8aac\u660e\u306b\u306a\u308a\u307e\u3059\u300212\u884c\u76ee\u306f\u30ea\u30f3\u30af\u3067\u98db\u3079\u308b\u3088\u3046\u306b\u3059\u308b\u8a18\u8ff0\u3067\u3059\u3002<a href=\"<?php the_permalink(); ?&gt;\"><\/a><\/p>\n\n\n\n<p>\u30eb\u30fc\u30d7\u5185\u3067\u8a72\u5f53\u3059\u308b<strong class=\"marker\">\u8a18\u4e8b\u306eURL\u3092\u305d\u306e\u307e\u307e\u51fa\u529b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u3067\u3059\u306e\u3067\u3001a\u30bf\u30b0\u306ehref\u5c5e\u6027\u306e\u4e2d\u306b\u305d\u306e\u307e\u307e\u8a18\u8ff0\u3057\u3066\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>13\u884c\u76ee\u304c<strong>\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306e\u51fa\u529b<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-start:13;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php the_post_thumbnail('medium'); ?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php <\/span><span style=\"color: #DCDCAA\">the_post_thumbnail<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;medium&#39;<\/span><span style=\"color: #D4D4D4\">); ?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306e\u7a2e\u985e\u306f\u3001\u5c0f\u3055\u3044\u9806\u306b<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"the_post_thumbnail( 'thumbnail' );        \/\/ \u30b5\u30e0\u30cd\u30a4\u30eb (\u30c7\u30d5\u30a9\u30eb\u30c8 150px x 150px\u00a0:\u6700\u5927\u5024)\nthe_post_thumbnail( 'medium' );           \/\/ \u4e2d\u30b5\u30a4\u30ba   (\u30c7\u30d5\u30a9\u30eb\u30c8 300px x 300px\u00a0:\u6700\u5927\u5024)\nthe_post_thumbnail( 'large' );            \/\/ \u5927\u30b5\u30a4\u30ba   (\u30c7\u30d5\u30a9\u30eb\u30c8 640px x 640px\u00a0:\u6700\u5927\u5024)\nthe_post_thumbnail( 'full' );             \/\/ \u30d5\u30eb\u30b5\u30a4\u30ba (\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u306e\u5143\u30b5\u30a4\u30ba)\nthe_post_thumbnail( array( 100, 100 ) );  \/\/ \u4ed6\u306e\u30b5\u30a4\u30ba\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">the_post_thumbnail<\/span><span style=\"color: #D4D4D4\">( <\/span><span style=\"color: #CE9178\">&#39;thumbnail&#39;<\/span><span style=\"color: #D4D4D4\"> );        <\/span><span style=\"color: #6A9955\">\/\/ \u30b5\u30e0\u30cd\u30a4\u30eb (\u30c7\u30d5\u30a9\u30eb\u30c8 150px x 150px\u00a0:\u6700\u5927\u5024)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">the_post_thumbnail<\/span><span style=\"color: #D4D4D4\">( <\/span><span style=\"color: #CE9178\">&#39;medium&#39;<\/span><span style=\"color: #D4D4D4\"> );           <\/span><span style=\"color: #6A9955\">\/\/ \u4e2d\u30b5\u30a4\u30ba   (\u30c7\u30d5\u30a9\u30eb\u30c8 300px x 300px\u00a0:\u6700\u5927\u5024)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">the_post_thumbnail<\/span><span style=\"color: #D4D4D4\">( <\/span><span style=\"color: #CE9178\">&#39;large&#39;<\/span><span style=\"color: #D4D4D4\"> );            <\/span><span style=\"color: #6A9955\">\/\/ \u5927\u30b5\u30a4\u30ba   (\u30c7\u30d5\u30a9\u30eb\u30c8 640px x 640px\u00a0:\u6700\u5927\u5024)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">the_post_thumbnail<\/span><span style=\"color: #D4D4D4\">( <\/span><span style=\"color: #CE9178\">&#39;full&#39;<\/span><span style=\"color: #D4D4D4\"> );             <\/span><span style=\"color: #6A9955\">\/\/ \u30d5\u30eb\u30b5\u30a4\u30ba (\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u753b\u50cf\u306e\u5143\u30b5\u30a4\u30ba)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">the_post_thumbnail<\/span><span style=\"color: #D4D4D4\">( <\/span><span style=\"color: #DCDCAA\">array<\/span><span style=\"color: #D4D4D4\">( <\/span><span style=\"color: #B5CEA8\">100<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">100<\/span><span style=\"color: #D4D4D4\"> ) );  <\/span><span style=\"color: #6A9955\">\/\/ \u4ed6\u306e\u30b5\u30a4\u30ba<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3042\u308a\u307e\u3059\u3002\u7b46\u8005\u306f\u753b\u50cf\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3044\u3068\u30b5\u30a4\u30c8\u306e\u8868\u793a\u304c\u9045\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u5c0f\u3055\u3059\u304e\u306a\u3044\u300cmedium\u300d\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u6b21\u306b\u300115\u884c\u76ee\u301c21\u884c\u76ee\u306e<strong>\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u3092\u51fa\u529b\u3059\u308b<\/strong>\u95a2\u6570\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u306e\u8a18\u8ff0\u3067\u306f\u3001\u30bf\u30a4\u30c8\u30eb\u304c40\u6587\u5b57\u4ee5\u4e0a\u306e\u5834\u5408\u306f\u300c&#8230;\u300d\u3067\u4ee5\u4e0b\u3092\u7701\u7565\u3059\u308b\u3088\u3046\u306bPHP\u3067\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\u306f\u3001<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php the_title(); ?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php <\/span><span style=\"color: #DCDCAA\">the_title<\/span><span style=\"color: #D4D4D4\">(); ?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3060\u3051\u8a18\u8ff0\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u6b21\u306b\u300123\u884c\u76ee\u306e<strong>\u629c\u7c8b\u3092\u51fa\u529b\u3059\u308b<\/strong>\u95a2\u6570\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u629c\u7c8b\u3068\u306f\u3001\u8a18\u4e8b\u306e\u6982\u8981\u3092\u8a18\u8ff0\u3059\u308b\u5834\u6240\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4efb\u610f\u5165\u529b\u306a\u306e\u3067\u3001\u5165\u529b\u304c\u306a\u3044\u5834\u5408\u306f\u8a18\u4e8b\u306e\u672c\u6587\u306e\u6700\u521d\u306e\u4e00\u90e8\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-start:23;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;p class=&quot;excerpt&quot;&gt;&lt;?php the_excerpt(); ?&gt;&lt;\/p&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;p <\/span><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">&quot;excerpt&quot;<\/span><span style=\"color: #D4D4D4\">&gt;&lt;?php <\/span><span style=\"color: #DCDCAA\">the_excerpt<\/span><span style=\"color: #D4D4D4\">(); ?&gt;&lt;\/p&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3000\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u300124\u884c\u76ee\u306f<strong>\u6295\u7a3f(\u516c\u958b)\u6642\u523b\u306e\u51fa\u529b<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-start:24;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;time&gt;&lt;?php the_time('Y.m.d'); ?&gt;&lt;\/time&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;time&gt;&lt;?php <\/span><span style=\"color: #DCDCAA\">the_time<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;Y.m.d&#39;<\/span><span style=\"color: #D4D4D4\">); ?&gt;&lt;\/time&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Y(\u5e74)m(\u6708)d(\u65e5)\u306a\u3069\u3092\u7528\u3044\u3066\u3001\u597d\u304d\u306a\u5f62\u5f0f\u3067\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u300126\u884c\u76ee\u306f<strong>\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u51fa\u529b<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-start:26;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;p&gt;&lt;?php the_category(' '); ?&gt;&lt;\/p&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;p&gt;&lt;?php <\/span><span style=\"color: #DCDCAA\">the_category<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39; &#39;<\/span><span style=\"color: #D4D4D4\">); ?&gt;&lt;\/p&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>category\u306e\u5f8c\u308d\u306e\u30ab\u30c3\u30b3\u5185\u306b\u4efb\u610f\u306e\u6587\u5b57\u3092\u5165\u308c\u308b\u3068\u3001\u533a\u5207\u308a\u3068\u3057\u3066\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u7a7a\u767d\u3067\u51fa\u529b\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-start:28;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php endwhile;else: ?&gt;\n    \u6295\u7a3f\u304c\u3042\u308a\u307e\u305b\u3093\n&lt;?php endif;wp_reset_postdata(); ?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php <\/span><span style=\"color: #C586C0\">endwhile<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\">: ?&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    \u6295\u7a3f\u304c\u3042\u308a\u307e\u305b\u3093<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php <\/span><span style=\"color: #C586C0\">endif<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #DCDCAA\">wp_reset_postdata<\/span><span style=\"color: #D4D4D4\">(); ?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3067\u30eb\u30fc\u30d7\u3092\u7d42\u308f\u3089\u305b\u3066\u3001\u8a18\u4e8b\u304c\u306a\u3044\u5834\u5408\u306e\u6587\u8a00\u3092\u66f8\u304d\u3001endif;\u306e\u5f8c\u306b\u30eb\u30fc\u30d7\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u95a2\u6570\u3001\u300cwp_reset_postdata();\u300d\u3092\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3046\u3044\u3063\u305f\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u95a2\u6570\u3092\u66f8\u3044\u3066\u3044\u306a\u3044\u3068\u305f\u307e\u306b\u4e0d\u5177\u5408\u306a\u3069\u304c\u8d77\u304d\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u306f\u3044\u3048\u3001\u4f5c\u8005\u304c\u4eca\u307e\u3067\u51fa\u4f1a\u3063\u305f\u30d0\u30b0\u3067\u30ea\u30bb\u30c3\u30c8\u3092\u66f8\u3044\u3066\u3044\u306a\u3044\u306e\u304c\u539f\u56e0\u3060\u3063\u305f\uff01\u3068\u3044\u3046\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5ff5\u306e\u305f\u3081\u306b\u66f8\u3044\u3066\u304a\u3044\u3066\u640d\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30eb\u30fc\u30d7\u5916\u3067\u4f7f\u3048\u308b\u95a2\u6570<\/h2>\n\n\n\n<p>\u4ee5\u4e0a\u304c\u7b46\u8005\u304c\u3088\u304f\u4f7f\u3046\u30eb\u30fc\u30d7\u5185\u306ewordpress\u306e\u95a2\u6570\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30eb\u30fc\u30d7\u306e\u5916\u304b\u5185\u304b\u3067\u4f7f\u3046\u95a2\u6570\u306f\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001<strong>the_content();<\/strong>\u3068\u3044\u3046\u672c\u6587\u3092\u8868\u793a\u3059\u308b\u95a2\u6570\u306f<strong class=\"marker\">&gt;\u30eb\u30fc\u30d7\u5916\u3067\u306f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002<\/strong><\/p>\n\n\n\n<p>\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u3067\u51fa\u529b\u3059\u308b\u5834\u5408\u306b\u306f\u6c17\u4ed8\u304d\u307e\u305b\u3093\u304c\u3001<strong>single.php<\/strong>\uff08\u8a18\u4e8b\u8a73\u7d30\u30da\u30fc\u30b8\uff09\u3067\u4f7f\u3046\u969b\u306b\u5fd8\u308c\u304c\u3061\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u6642\u306f\u3001\u3060\u3044\u305f\u3044\u8abf\u3079\u308c\u3070\u5148\u4eba\u305f\u3061\u304c\u8a18\u4e8b\u306b\u3057\u3066\u6559\u3048\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u56f0\u3063\u305f\u3089<strong>\u3059\u3050\u306b\u8abf\u3079\u3066\u307f\u308b\u3053\u3068<\/strong>\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u304b\u3089\u306f\u30eb\u30fc\u30d7\u5916\u3067\u3088\u304f\u4f7f\u3046\u95a2\u6570\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>get_header();<\/strong><\/li>\n\n\n\n<li><strong>get_sidebar();<\/strong><\/li>\n\n\n\n<li><strong>get_footer();<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u3053\u3061\u3089\u306f\u3001\u8a18\u8ff0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u3058\u968e\u5c64\u306b\u3042\u308bheader.php\u3001sidebar.php\u3001footer.php\u3092include\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\uff08\u30ab\u30c3\u30b3\u5185\uff09\u306b\u3001\u4f8b\u3048\u3070\u300c&#8217;main&#8217;\u300d\u3068\u8a18\u8ff0\u3059\u308b\u3068\u3001header-main.php\u3001sidebar-main.php\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>get_template_directory_uri();<\/strong><\/li>\n\n\n\n<li><strong>home_url();<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-center\">\u2193\u51fa\u529b\u5f8c<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30c9\u30e1\u30a4\u30f3\u540d\/wp-content\/themes\/\u30c6\u30fc\u30de\u540d\/(\u4eca\u3044\u308b\u968e\u5c64\u307e\u3067)<\/strong><\/li>\n\n\n\n<li><strong>\u30c9\u30e1\u30a4\u30f3\u540d\/(\u4eca\u3044\u308b\u968e\u5c64\u307e\u3067)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u524d\u8005\u306f\u3001echo\u3068\u30bb\u30c3\u30c8\u3067\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001<strong>img\u30bf\u30b0<\/strong>\u3084<strong>\u30d5\u30a1\u30a4\u30eb\u3092\u53c2\u7167\u3059\u308b\u3068\u304d<\/strong>\u306e\u305f\u3081\u306e<strong class=\"marker\">\u30d1\u30b9\u3092\u51fa\u529b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u5f8c\u8005\u306f\u3001<strong>a\u30bf\u30b0\u306ehref\u5c5e\u6027<\/strong>\u306a\u3069\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30eb\u30fc\u30d7\u5916\u3067\u30dc\u30bf\u30f3\u306a\u3069\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306b\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u521d\u5fc3\u8005\u306e\u65b9\u3067\u3082\u4f7f\u3046\u6a5f\u4f1a\u306e\u591a\u3044\u3067\u3042\u308d\u3046\u95a2\u6570\u3092\u7d39\u4ecb\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>WordPress\u306f\u4fbf\u5229\u306a\u95a2\u6570\u304c\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u304c\u3001<strong>\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u3088\u304f\u8aad\u3093\u3060\u308a\u52c9\u5f37\u304c\u5fc5\u8981\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u3054\u81ea\u8eab\u306e\u6e80\u8db3\u306e\u3044\u304f\u30d6\u30ed\u30b0\u3092\u4f5c\u3063\u3066\u3001\u7d20\u6575\u306aWordpress\u30e9\u30a4\u30d5\u3092\u9001\u308c\u308b\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2193\u524d\u56de\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3044\u306a\u3044\u65b9\u306f\u3053\u3061\u3089\u304b\u3089 WordPress\u521d\u5fc3\u8005\u5fc5\u898b\uff01\u3088\u304f\u4f7f\u3046\u95a2\u6570\u307e\u3068\u3081\u3010\u30d6\u30ed\u30b0\u7de8\uff11\u3011 \u524d\u56de\u306e\u7d9a\u304d\u304b\u3089\u59cb\u3081\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\uff01\u3000 \u4eca\u56de\u306f12\u884c\u76ee\u4ee5\u964d\u304b\u3089\u306e\u8aac\u660e\u306b\u306a\u308a\u307e\u3059\u300212\u884c\u76ee\u306f\u30ea\u30f3\u30af\u3067\u98db\u3079\u308b\u3088\u3046\u306b\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":9361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[37],"tags":[82,76],"class_list":["post-7316","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column","tag-php","tag-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/comments?post=7316"}],"version-history":[{"count":8,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7316\/revisions"}],"predecessor-version":[{"id":9778,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7316\/revisions\/9778"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media\/9361"}],"wp:attachment":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media?parent=7316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/categories?post=7316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/tags?post=7316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}