gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Categories block - consider option of showing only child categories of current parent

Open Sandstromer opened this issue 5 years ago • 1 comments

What problem does this address?

Being able to use the Categories block in the archive or category template, but only list the child categories of the current parent category would be awesome, rather than only having the current option of showing all categories.

What is your proposed solution?

Add an option to limit displayed categories to only children of the current parent category.

Sandstromer avatar Oct 22 '21 11:10 Sandstromer

Thanks for the suggestion! This is now possible with the Terms Query block (#72380, #72313). Put it in a category archive template and leave the query on "Default" (inherit), and it lists only the children of the current category. You can also turn on nested terms to show deeper levels. Closing this as addressed, but please open a new issue if you specifically need this in the Terms List block.

youknowriad avatar Oct 15 '26 13:10 youknowriad