Show Subcategories on WordPress Category Archives
On a category archive, WordPress already knows which term is being viewed. Read that queried term, fetch its direct children with `get_terms()`, and render escaped term links—without hard-coding IDs into a fragile copied template.