How do I select parent or child when using terms query loop?


Trying to narrow down which categories are shown by parent/child categories in a query loop.

How do I define which one in the loop? Do I just write the name of the category or what do I need to do?


Hi Erik,
Welcome to the forum!

You can use the term ID instead of the name.

Best regards,