Sunday, January 23rd, 2022

Custom Taxonomy – Create sidebar tree menus from categories and posts

I’m trying to create a “tree” menu that will list all my categories for a custom post type, then list the posts for each category under it.

In other words, something like:

Scifi
--Dune
--Blade Runner
Drama
--Schindler's List
--Scarface

In this example my custom post type is ‘movies’. Each movie post has a category like ‘scifi’ or ‘drama’

Source link