List Categories of the Parent Category of the Current Category
Assuming you have only two levels of categories, you could first retrieve the parent category and then list the child categories. Furthermore, calling get_children and wp_list_categories uses more resources than necessary, using only wp_list_categories would suffice. I’ve explained my answer in the following snippet that should behave exactly as you need it to! $category_id = … Read more