By default WordPress will list posts on each category in its hierarchy.
When viewing the "Parent" category you will see a list of posts from child, grandchild and parent - even if the post is just ticked in "Grandchild".
My question is: How do I only show posts when viewing the last child? Is there a built in WordPress function for this?
[grandchild categories] = array of grandchildren if(in_array( [grandchild categories] )) : show posts else: do nothing