{"id":3106,"date":"2012-02-13T20:36:54","date_gmt":"2012-02-13T11:36:54","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=3106"},"modified":"2012-02-13T20:49:29","modified_gmt":"2012-02-13T11:49:29","slug":"wordpress-%e7%89%b9%e5%ae%9a%e3%81%ae%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e5%88%86%e9%a1%9e-%e8%a8%98%e4%ba%8b%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=3106","title":{"rendered":"WordPress \u7279\u5b9a\u306e\u30ab\u30b9\u30bf\u30e0\u5206\u985e \u8a18\u4e8b\u8868\u793a"},"content":{"rendered":"<p>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3084\u3001\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u3084\u3089\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001\u8a33\u304c\u5206\u304b\u3093\u306a\u304f\u306a\u308a\u307e\u3059\u306dw<\/p>\n<p>\u3061\u3087\u3063\u3068\u7c21\u5358\u306b\u307e\u3068\u3081\u3002<\/p>\n<p>\u4eca\u56de\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3067\u6295\u7a3f\u3055\u308c\u305f\u8a18\u4e8b\u3092\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u3067\u5206\u3051\u3066\u8868\u793a\u3002\uff08\u307b\u3089\u3002w\uff09<\/p>\n<p>\u7d75\u3067\u8a00\u3046\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/custum.png\" title=\"custum\" width=\"600\" height=\"320\" class=\"alignnone  wp-image-3107\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/custum.png 750w, https:\/\/www.webcyou.com\/wp-content\/uploads\/custum-300x160.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u3042\u3041\u7d75\u3082\u3072\u3069\u3044\u306a\u3002\u3053\u308a\u3083\u3002w \u7d30\u83cc\u307f\u305f\u3044\u3060\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u306e\u4e2d\u3067\u5206\u3051\u3089\u308c\u305f\u30bf\u30fc\u30e0\u3092\u6301\u3064\u8a18\u4e8b\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u3002<\/p>\n<p>\u3063\u3066\u3053\u3068\u3067\u3059\u3002<\/p>\n<h4 id=\"p7\">query_posts \u3068WP_Query<\/h4>\n<p>\u56fa\u5b9a\u30da\u30fc\u30b8\u3067\u8868\u793a\u3055\u305b\u308b\u969b\u3001\u30da\u30fc\u30b8\u5185\u306b\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30eb\u30fc\u30d7\u306e\u767a\u751f\u306e\u4ed5\u65b9\u3082<strong>query_posts<\/strong>\u3067\u884c\u3046\u304b\u3001<strong>WP_Query<\/strong>\u3067\u884c\u3046\u304b\u3063\u3066\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3069\u3046\u9055\u3044\u304c\u3042\u308b\u306e\uff1f\u3068\u8a00\u308f\u308c\u307e\u3059\u3068<\/p>\n<p><strong>query_post<\/strong> \u306f<strong>\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3092\u5909\u66f4\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30b0<\/strong>\u3063\u3066\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p><strong>\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u3060\u3051\u306b\u4f7f\u3048\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30b0<\/strong>\u306a\u306e\u3067\u3001\u30da\u30fc\u30b8\u5185\u3067\u306f1\u56de\u306e\u307f\u306e\u4f7f\u7528\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&lt;?php\r\n$args = array(\r\n     'post_type' =&gt; 'hogege_post', \r\n     'paged' =&gt; $paged\r\n);\r\n?&gt;\r\n&lt;?php query_posts($args); ?&gt;<\/pre>\n<\/p>\n<p>\u30da\u30fc\u30b8\u5185\u3067\u8907\u6570\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f<strong>WP_Query<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&lt;?php\r\n$args = array(\r\n     'post_type' =&gt; 'hogege_post', \r\n     'paged' =&gt; $paged\r\n);\r\n?&gt;\r\n&lt;?php $loop = new WP_Query($args); ?&gt;<\/pre>\n<\/p>\n<p>\u4eca\u56de\u306f\u3053\u3061\u3089\u3092\u4f7f\u7528\u3057\u3001\u7279\u5b9a\u306e\u30bf\u30fc\u30e0\u3092\u6301\u3064\u8a18\u4e8b\u306e\u307f\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30ab\u30b9\u30bf\u30e0\u5206\u985e \u30bf\u30fc\u30e0\u5225\u8a18\u4e8b\u51fa\u529b<\/h4>\n<p>\u5148\u307b\u3069\u306eWP_Query\u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30d7\u306e\u30bd\u30fc\u30b9\u306b\u30bf\u30fc\u30e0\u306e\u6307\u5b9a\u7b49\u3092\u884c\u3046\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&lt;?php\r\n$args = array(\r\n    'post_type' =&gt; 'custompost001',\r\n    'posts_per_page' =&gt; 1,\r\n    'tax_query' =&gt; array( \/* \u30ab\u30b9\u30bf\u30e0\u5206\u985e *\/\r\n            array(\r\n                'taxonomy' =&gt; 'customTaxonomy001',\r\n                'field' =&gt; 'slug',\r\n                'terms' =&gt; 'customTaxonomy001_1',\r\n            )\r\n        )\r\n    );\r\n?&gt;\r\n&lt;?php $loop = new WP_Query($args); ?&gt;\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u300ccustompost001\u300d\u306e\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u300ccustomTaxonomy001\u300d\u306e\u30bf\u30fc\u30e0\u300ccustomTaxonomy001_1\u300d\u306e\u307f\u306e\u8a18\u4e8b\u3092\u53d6\u5f97\u3057\u30eb\u30fc\u30d7\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u51fa\u529b\u3055\u305b\u305f\u3044\u60c5\u5831\u3092\u51fa\u529b\u3055\u305b\u308b\u306e\u307f\uff01<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;\r\n    &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;\r\n\t&lt;h2 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\r\n\t  &lt;?php the_content(); ?&gt;\r\n    &lt;\/div&gt;\r\n&lt;?php endwhile; ?&gt;\r\n<\/pre>\n<\/p>\n<p>\u77ed\u304f\u3059\u308b\u3068\u3001<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">&lt;?php\r\n$args = array(\r\n    'post_type' =&gt; 'custompost001',\r\n    'posts_per_page' =&gt; 1,\r\n    'tax_query' =&gt; array( \/* \u30ab\u30b9\u30bf\u30e0\u5206\u985e *\/\r\n            array(\r\n                'taxonomy' =&gt; 'customTaxonomy001',\r\n                'terms' =&gt; 'customTaxonomy001_1',\r\n            )\r\n        )\r\n    );\r\n?&gt;\r\n&lt;?php $loop = new WP_Query($args); ?&gt;\r\n&lt;?php while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;\r\n&lt;?php the_content(); ?&gt;\r\n&lt;?php endwhile; ?&gt;\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3084\u3001\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u3084\u3089\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001\u8a33\u304c\u5206\u304b\u3093\u306a\u304f\u306a\u308a\u307e\u3059\u306dw \u3061\u3087\u3063\u3068\u7c21\u5358\u306b\u307e\u3068\u3081\u3002 \u4eca\u56de\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3067\u6295\u7a3f\u3055\u308c\u305f\u8a18\u4e8b\u3092\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u3067\u5206\u3051\u3066\u8868\u793a\u3002\uff08\u307b\u3089\u3002w\uff09 \u7d75\u3067\u8a00\u3046\u3068\u3053\u3093\u306a\u611f\u3058\u3067 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[129,107,180,173,111,130,131,115],"class_list":["post-3106","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-cms","tag-mamp","tag-mysql","tag-php","tag-wordpress-2","tag-130","tag-131","tag-115"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/3106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3106"}],"version-history":[{"count":7,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/3106\/revisions"}],"predecessor-version":[{"id":3114,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/3106\/revisions\/3114"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}