Show subcategories on main category

How to show immediate subcategories of current main category on its archive page.

Iā€™m not sure how to do this without a builder, but I think in another post you mentioned you were using Beaver Builder. So assuming you have Beaver Themer as well, you can use that to create a themer layout that applies to your category archive page and then use a taxonomy term loop to display child terms.

I can manage displaying it on archive page. I just need markup to get list of categories. I have used following markup and it works:

<Loop type=taxonomy_term taxonomy=category parents=true>
  <a href="{Field url}"><Field title /></a><br>
  <Loop field=children>
    ā€“ <Field title /><br>
  </Loop>
</Loop>
1 Like