To get the current category ID: $category = get_queried_object(); echo $category->term_id; Very simple, very effective.
確定! 回上一頁