Try using get_term_children() : // This will give you an array with the ID's of all child categories of 'trekking': $cat = get_category_by_slug('trekking'); ...
確定! 回上一頁