I'm looking to show parent categories that have children, but if parents have no children, I need to show channel entries for the parent cats using the same segment_3.
{if "child_categories"!=""}
This Has Child Categories
{if:else}
This Doesn't - Show Entries in Parent
{/if}
Edit: Trying this:
{exp:gwcode_categories cat_url_title="{segment_2}" max_depth="2"}
{if '{has_children_in_output}' != ''}
This Has Stuff Show Children Cats
{if:else} This Doesn't Have Children - Show Entries for Parent Cat
{/if} {/exp:gwcode_categories}
I'm just not sure whow to show entries inside GW Cat tags. Maybe I need to store GW output as a variable to reuse in a Channel Tag?