I making some updates to a theme I'm currently working on.
I've moved a bunch of categories that have custom post items under them into a parent category that's all within a custom taxonomy.
Parent Category -Child Category --Item --Item --Item -Child Category --Item --Item -Child Category --Item --Item --Item
I'm able to list them out on a
taxonomy-custom-tax-name.php page, but when I click on the link of the parent category, it's lists all of the items that are associated the children category and not just the children category themselves.
--Item --Item --Item --Item --Item ...etc.
I'm trying to get it so it just lists out the children categories with a link to then go to a page with the items attached to that category:
-Child Category -Child Category -Child Category -Child Category
I'm currently using this loop on the custom taxonomy page:
<?php global $query_string;
query_posts( $query_string . '&posts_per_page=-1' ); if (have_posts()) : while (have_posts()) : the_post(); ?>
I'm not sure if I need to change up my loop statement or if I need to create a
if else case statement?
I've already tried creating separate custom taxonomy pages as well as a separate category page with the parent category name and it's still not working the way I'm try to get it to.
I hope that makes sense. This is the first time for me really diving into custom taxonomies so I'm trying to wrap my head around the logic and it seems like there is more than one way to get everything to display correctly.