{"id":174193,"date":"2014-04-08T11:44:30","date_gmt":"2014-04-08T02:44:30","guid":{"rendered":""},"modified":"2016-07-30T20:43:26","modified_gmt":"2016-07-30T20:43:26","slug":"%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%bf%e3%82%af%e3%82%bd%e3%83%8e%e3%83%9f%e3%83%bc%e3%81%ae%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e3%81%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%be%e3%82%8c","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%bf%e3%82%af%e3%82%bd%e3%83%8e%e3%83%9f%e3%83%bc%e3%81%ae%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e3%81%8c%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%be%e3%82%8c\/","title":{"rendered":"\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u304c\u8aad\u307f\u8fbc\u307e\u308c\u307e\u305b\u3093\u3002"},"content":{"rendered":"<p>\u521d\u3081\u3066Wordpress\u3067\u81ea\u793e\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3010lesson\u3011\u3092\u4f5c\u308a\u3001\u30ab\u30b9\u30bf\u30e0\u5206\u985e\u3010ws_classify\u3011\u3067<br \/>\n\u3010in-shop\u3011\u3068\u3010in-event\u3011\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3010in-shop\u3011\u3092\u66f4\u306b\u5206\u985e\u3059\u308b\u3010A\u3011\u3068\u3010B\u3011\u3082\u4f5c\u3063\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\n\u8868\u793a\u3055\u305b\u308b\u30da\u30fc\u30b8\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4f5c\u3063\u305f<br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8lesson.php\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u66f8\u304d\u52a0\u3048\u305f\u306e\u306f<\/p>\n<p>&lt;?php $args = array(<br \/>\n&#8216;post_type&#8217; =&gt; &#8216;lesson&#8217;,<br \/>\n&#8216;paged&#8217; =&gt; $paged,<br \/>\n ); ?&gt;<\/p>\n<p>\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u56f0\u3063\u3066\u3044\u308b\u306e\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3010lesson\u3011\u306e\u8a18\u4e8b\u30a2\u30fc\u30ab\u30a4\u30d6\u306f<br \/>\n\u304d\u3061\u3093\u3068\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3010ws_classify\u3011\u306e<br \/>\n\u305d\u308c\u305e\u308c\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3053\u3068\u3067\u3059\u3002<br \/>\n\u8a66\u3057\u306b\u3053\u3046\u3044\u3046\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u5b9f\u9a13\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><code><\/p>\n<p> `&lt;?php<br \/>\n$catargs = array(<br \/>\n\t'taxonomy' =&gt; 'ws_classify'<br \/>\n);<br \/>\n$catlists = get_categories( $catargs );<br \/>\nforeach($catlists as $cat) :<br \/>\nif ( is_user_logged_in() ) {<br \/>\n\techo '&lt;pre&gt;';<br \/>\n\tvar_dump( $cat );<br \/>\n\techo '&lt;\/pre&gt;';<br \/>\n}<br \/>\n*\/<br \/>\n?&gt;<br \/>\n&lt;section&gt;<br \/>\n&lt;h3&gt;&lt;a href=\"&lt;?php echo home_url('\/path\/' . $cat-&gt;slug ); ?&gt;\"&gt;&lt;?php echo $cat-&gt;name; ?&gt;&lt;\/a&gt;&lt;\/h3&gt;<br \/>\n&lt;p&gt;&lt;?php echo $cat-&gt;category_description; ?&gt;&lt;\/p&gt;<br \/>\n&lt;ul&gt;<br \/>\n&lt;?php<br \/>\n$args = array(<br \/>\n\t'post_type' =&gt; 'lesson',<br \/>\n\t'ws_classify' =&gt; $cat-&gt;slug<br \/>\n);<br \/>\n$my_posts = get_posts( $args );<br \/>\nif ( $my_posts ) {<br \/>\n\tforeach ( $my_posts as $post ) :<br \/>\n\t\tsetup_postdata( $post );<br \/>\n\t\t?&gt;<br \/>\n\t\t&lt;li&gt;&lt;a href=\"&lt;?php the_permalink(); ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\n\t\t&lt;?php<br \/>\n\tendforeach;<br \/>\n} else {<br \/>\n\techo '\u3053\u306e\u30ab\u30c6\u30b4\u30ea\u306b\u6295\u7a3f\u306f\u3042\u308a\u307e\u305b\u3093';<br \/>\n}<br \/>\nwp_reset_postdata();<br \/>\n?&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/section&gt;<br \/>\n&lt;?php endforeach; ?&gt;`<\/p>\n<p><\/code><\/p>\n<p>\u3053\u3061\u3089\u3067\u30bf\u30fc\u30e0\u540d\u3001\u307e\u305f\u305d\u308c\u306b\u5c5e\u3057\u3066\u3044\u308b\u8a18\u4e8b\u3082\u3001\u305d\u308c\u305e\u308c\u30ea\u30f3\u30af\u4ed8\u304d\u3067<br \/>\n\u30ea\u30b9\u30c8\u8868\u793a\u3055\u308c\u305f\u306e\u3067\u3059\u304c\u3001\u500b\u5225\u8a18\u4e8b\u305d\u308c\u305e\u308c\u306f\u554f\u984c\u306a\u304f\u8868\u793a\u3055\u308c\u308b\u306e\u306b<br \/>\n\u30bf\u30fc\u30e0\u540d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082404\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u2026\u3002<br \/>\n\uff08\u300c\u3053\u306e\u30ab\u30c6\u30b4\u30ea\u306b\u6295\u7a3f\u306f\u3042\u308a\u307e\u305b\u3093\u300d\u306e\u8868\u793a\u306f\u51fa\u307e\u305b\u3093\uff09<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u3068\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u4f5c\u6210\u3057\u305f\u30d7\u30e9\u30b0\u30a4\u30f3<br \/>\nCustom Post Type UI\uff080.8.2\uff09\u306e\u8a2d\u5b9a\u304c\u304a\u304b\u3057\u3044\u306e\u304b\u3068\u8abf\u3079\u307e\u3057\u305f\u304c\u3001<br \/>\n\u8272\u3005\u306a\u30b5\u30a4\u30c8\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u6b63\u3057\u3044\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\uff08\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\uff1dHas Archive\u3092true\u3001\u968e\u5c64\u306fFalse\u3001\u30ea\u30e9\u30a4\u30c8\u306ftrue<br \/>\n\u30bf\u30af\u30bd\u30ce\u30df\u30fc\uff1d\u968e\u5c64\u306ftrue\u3001\u30ea\u30e9\u30a4\u30c8\u3082true\uff09<\/p>\n<p>List Custom Taxonomy Widget\u3068\u4e91\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u5b9f\u9a13\u3057\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\n\u6295\u7a3f\u6570\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u305f\u3089\u3061\u3083\u3093\u3068\u8a18\u4e8b\u6570\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<br \/>\n\u3067\u3082\u3001\u3044\u3056\u30bf\u30fc\u30e0\u540d\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089404\u3067\u306f\u306a\u304f\u300c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u8a18\u4e8b\u306f<br \/>\n\u3054\u3056\u3044\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u8a18\u4e8b\u304c\u306a\u3044\u6642\u306e\u304a\u77e5\u3089\u305b\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30c9\u30ec\u30b9\u76f4\u6253\u3061\u5b9f\u9a13\u3067\u306f\u3001<br \/>\n\u300chttp:\/\/\u81ea\u793e\u30b5\u30a4\u30c8\u30a2\u30c9\u30ec\u30b9\/wordpress\/lesson\/\u300d\u3067\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u300clesson\u300d<br \/>\n\u5168\u8a18\u4e8b\u30a2\u30fc\u30ab\u30a4\u30d6\u306f\u554f\u984c\u306a\u304f\u8868\u793a\u3002<br \/>\n\u300chttp:\/\/\u81ea\u793e\u30b5\u30a4\u30c8\u30a2\u30c9\u30ec\u30b9\/wordpress\/lesson\/ws_classify\/\u300d\u3067\u306f404\u3002<br \/>\n\u300chttp:\/\/\u81ea\u793e\u30b5\u30a4\u30c8\u30a2\u30c9\u30ec\u30b9\/wordpress\/lesson\/ws_classify\/in-shop\/\u300d\u3067\u306f<br \/>\n\u8a18\u4e8b\u304c\u5b58\u5728\u3057\u306a\u3044\u6642\u306e\u304a\u77e5\u3089\u305b\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p>\u2606\u81ea\u5206\u306a\u308a\u306b\u60c5\u5831\u691c\u7d22\u3057\u3066\u8a66\u3057\u305f\u3053\u3068\u2606<br \/>\n\u30fb\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u30ab\u30e9\u66f4\u65b0<br \/>\n\u30fbarchive.php\u3092\u30b3\u30d4\u30fc\u3057\u3066taxonomy-ws_classify.php\u3092\u4f5c\u6210\u3001ws_classify\u306e<br \/>\n\u8a18\u4e8b\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u21d2\u4e00\u89a7\u306f\u8868\u793a\u3055\u308c\u305a\u3001\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u30d8\u306e\u30ca\u30d3\u3060\u3051\u8868\u793a<\/p>\n<p>\u3082\u3046\u304b\u308c\u3053\u308c\u4e00\u9031\u9593\u4ee5\u4e0a\u60a9\u3093\u3067\u3044\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u99c6\u4f7f\u3057\u3066<br \/>\n\u81ea\u5206\u3067\u4e00\u89a7\u3092\u4f5c\u3063\u3066\u3044\u304f\u3057\u304b\u306a\u3044\u306e\u304b\u306a\u2026\u3068\u601d\u3046\u304f\u3089\u3044\u8ffd\u3044\u8a70\u3081\u3089\u308c\u3066<br \/>\n\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u524d\u306b\u30c0\u30e1\u5143\u3067\u8cea\u554f\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3069\u3053\u304b\u306e\u8a18\u8ff0\u3067\u306f\u3001 function.php\u306b\u30ea\u30e9\u30a4\u30c8\u306e\u30eb\u30fc\u30eb\u3092\u66f8\u304f\u3068\u76f4\u308b\u304b\u3082\u3001\u3068<br \/>\n\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001function.php\u304c\u3069\u3053\u306b\u3042\u308b\u304b\u3055\u3048\u3082\u5206\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n\uff08\u30c6\u30fc\u30de\u306e\u4e2d\u306e\u306ffunctions.php\u3060\u304b\u3089\u9055\u3044\u307e\u3059\u3088\u306d\u2026\uff1f\uff09<\/p>\n<p>\u8d85\u521d\u5fc3\u8005\u3086\u3048\u3001\u304a\u7b54\u3048\u3044\u305f\u3060\u304f\u305f\u3081\u306e\u60c5\u5831\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001<br \/>\n\u305d\u306e\u3054\u6307\u6458\u3068\u5171\u306b\u6551\u3044\u306e\u624b\u3092\u5dee\u3057\u4f38\u3079\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f<\/p>\n<p>WordPress \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f3.8_1<br \/>\nPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f5.4<br \/>\n\u30b5\u30fc\u30d0\u30fc\u74b0\u5883(OCN\u3001Windows7)<br \/>\n\u30d6\u30e9\u30a6\u30b6\u306fFirefox28.0(\u6700\u65b0\u3068\u66f8\u3044\u3066\u307e\u3057\u305f)<br \/>\n\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f\uff3f<\/p>\n","protected":false},"template":"","class_list":["post-174193","topic","type-topic","status-closed","hentry","topic-tag-14700","topic-tag-14401","topic-tag-15653","topic-tag-16762"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/174193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/174193\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=174193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}