親ã»åã»å«ãªã©3é層以ä¸ã®ã«ãã´ãªãããããã®ãã¹ã¦ã®ã«ãã´ãªãªãã¸ã§ã¯ããåå¾ãããã£ãã®ã§ãæå®ããã«ãã´ãªãã親ã«ãã´ãªã¾ã§ã®ãã¹ã¦ã®ã«ãã´ãªãªãã¸ã§ã¯ããåå¾ãã¦ãããå帰çå¦çãªé¢æ°ãä½ãã¾ããã /** * ã«ãã´ãªãªãã¸ã§ã¯ããå帰çã«åå¾ */ if (! function_exists('category_recursive')): function category_recursive($obj, $cats = array()){ $cats[] = $obj; if($obj->category_parent > 0){ $obj = get_category($obj->category_parent); return category_recursive($obj, $cats); }else{ return $cats; } } endif; ä¸è¨é¢æ°ã以ä¸ã®
{{#tags}}- {{label}}
{{/tags}}