By default WordPress will list posts on each category in its hierarchy.
Example:
Parent
/- child
/-- grandchild
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?
e.g.:
[grandchild categories] = array of grandchildren
if(in_array( [grandchild categories] )) : show posts
else:
do nothing
<meta name="robots" content="noindex,follow"/>
, pretty much regardless how you organize your archives.