To clarify, is your query only pulling posts tagged as the parent category and nothing tagged as a child category? And are you saying you’d like to have everything on this page?
You might try changing child_of
to cat
and get rid of depth
.
But TBH you may want to try a different approach at querying; this question/answer suggests that query_posts()
is not the best method: When should you use WP_Query vs query_posts() vs get_posts()?
Another approach would be to query for the IDs of the child categories of this parent and then loop through them with individual post queries – if you’d want them in six sections.
Related Posts:
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- How to get_queried_object on multiple objects?
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Hide child term posts on parent term pages
- Posts per Page on custom Taxonomy Template
- Post type archive page not working
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Archive page for taxonomy of custom post type
- Should I change these content meta types before building complex archive page?
- Getting taxonomy terms used by custom post type
- Archive or taxonomy pages not working for custom post type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- How to create archive page for taxonomy terms within custom post type
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- taxonomy template for custom post type the same as the archive
- Display only post types that are direct children of the current taxonomy
- How can I filter by taxonomy on a custom post type’s page?
- Custom template won’t load for a custom post type (custom permalinks used)
- Custom post type templating problem
- Create template for taxonomy results limited by Custom Post Type
- Extending AZIndex plugin to use custom post types and custom taxonomies
- Use Custom Post Type archive page for the taxonomies term archive page
- Display custom post type category, while in a CPT category, then the posts beneath
- Number of Custom Post Types published are not being shown in the custom page
- posttype/taxonomy/term archive page 404 error
- Custom Post Archive is not working
- What’s the name of the custom post type yearly archive template?
- Alphabetically sort a taxonomy.php template by post title
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- Use the custom post type archive for taxonomies?
- Custom Post type date archive for custom taxonomy
- Query Posts that have Custom Taxonomy
- Custom Post Type Custom Archive Page Not Working
- Getting custom taxonomy posts on archive page
- Archive page for custom post type and custom taxonomy
- Custom post type category permalinks and archive pages
- Displaying custom taxonomy menu in custom post type archive
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Displaying all posts by category and showing content on click
- pagination problem listing custom post types of taxonomy in wordpress
- Posts per Page on custom Taxonomy Template
- Static Front Page not working for custom theme
- Building Link List for Custom Tax
- Custom taxonomy with custom post type archive page
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Custom post type post_type_link gives “page not found” on any other custom post type
- Custome post type “tags” pick default archive instead of custom post type archive
- Customize url from the_terms
- Custom post types not displaying per category
- Help with Multi Level Category Archive Page
- Custom post type archive page not showing on archive-posttype.php
- Custom taxonomy in custom post type archive with pagination
- Pagination fault in custom post type archive page [duplicate]
- Why is this custom post type defaulting to archive.php?
- title tag for custom post type remove taxonomy name from title tag
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Custom taxonomy archive page not routing?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Custom post type yearly/ monthly archive permalinks
- Taxonomy, Terms, and Template Files
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- How to list all categories and tags in a page?
- TV Show database – Best way for structuring it?
- Many to Many Taxonomies or rewrite rules?
- Query posts by custom post type and custom taxonomy
- How to display the rest of categories on Portfolio filterable
- How to query custom post type by term?
- How to get the first term for the current taxonomy?
- Display Posts in Custom Post Types Timber
- Custom Post Type with has_archive ignores my custom archive and single template
- Getting a PHP Notice when using Pods with WPML [closed]
- Custom post type multiple loop by taxonomy term
- How to Filter custom post type by taxonomy?
- What’s the WP way to load remaining custom posts?
- WordPress subpages to custom post types
- Set thumbnail and title for a post type archive (not post itself!)
- Can’t use pagination with custom taxonomy
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- Targeting categories in custom fields
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Custom post type specific category box
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- custom post type and a “sticky” position taxonomy
- Ajax load more inside custom post type taxonomy
- How can I get the last 5 element of this tax query?
- Create a custom wp_query from a specific custom post type with specific taxonomy
- order taxonomy alphabetical
- Cannot retrieve Custom Taxonomies (Disappeared)
- Custom Post type and Taxonomy in post URL error
- Stop Custom post type from being searched via URL
- Sort a custom post type loop by a custom taxomomy instead of chronologically
- How to Create Custom Post Type with Multiple Color Options?
- Add custom taxonomies as class names to an archive page of custom post types
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- WP Query – Can’t get posts with specific taxonomy