Site logo

Archived topic

Show Category, subcategory and linked posts

1 reply · Started by Fernando on August 1, 2021

Viewing posts 1–2 of 2

I can't find a way or an option to create a shorcode that queries the current category and displays its child categories, with the list of posts in each child category.

For example. If I'm in a cat website, in the first screen I would show me:

*category--> cats
--> Persian cat (Subcategory)
-------> Persian cat care (Link post)
-------> Why do Persian cats sleep a lot? (Link post)
--> European cat (Subcategory)
-------> Origin of the European cat (Link publication)

This would be a representation in the main archive category
If I decide to go into people breeds, the subcategory archive should only show me
--> Persian cat (Subcategory)
---> Persian cat care (Link post)
---> Why do Persian cats sleep a lot? (Link post)

Is this possible with a shorcode for custom post types?

This archived topic is closed to new replies.