Figured a simple pre_get_posts would do the trick,
It will, you just need to query posts that have a parent of 0
.
Assuming your taxonomy slug/name is literally just region
:
function wpse_286405_parents_only( $query ) {
if ( ! is_admin() && $query->is_tax( 'region' ) ) {
$query->set( 'post_parent', 0 );
}
}
add_action( 'pre_get_posts', 'wpse_286405_parents_only' );
Related Posts:
- Custom Post Type Archives by Date and Taxonomy
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- How to show term-specific post list, without posts associated with child terms?
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Category page only displaying the posts from a custom type
- How to list custom post types?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Get the taxonomy of a post hierarchically
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Custom Post type & Taxonomy 404
- Use the custom post type archive for taxonomies?
- How to constrain the results to a specific post_type on tag archive page?
- Custom post types not showing on the standard WordPress Category page
- Archive for custom taxonomy
- One of my headings is mysteriously coming up as a link in my CPT Archive
- How can I set up the URL for a category archive for a custom post type?
- Show custom category archive as front page and remove taxonomy slug from urls
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Setting up custom post type archives in WP3.1? Any luck?
- Custom taxonomy not showing up when adding a new custom post type
- How to show more posts on an archive page?
- How to list all categories and tags in a page?
- show tags of custom post type ONLY
- Hierachical Custom post types permalinks not working
- Create an archive page for custom taxonomies
- Display all custom post types in archives.php
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- How to check if last uri segment is a custom post type or taxonomy term?
- Removing CPT slug from URL results in 404 error for archive page
- Internationalize / translate custom post types & taxonomies
- Multiple post types in archives (filter?)
- How to let custom post type posts show in standard post archive (like in homepage)?
- Rewrite custom post & taxonomy to share same URL path
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Custom post type archive sorted and grouped by date in post meta field
- Associate Taxonomies Across Post Types
- Detect if 1st, 2nd or 3rd level custom page?
- Custom post type routing with hierarchy
- Custom-post-type-archive: posts sorted/filtered by year?
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Have a Custom Post Type index page display taxonomy items instead of posts
- Custom page template for category taxonomy
- How can I display an archive of only one category of my custom post type?
- How do I get array of types associated with a taxonomy?
- Custom template page with custom archives listing by user
- post_row_actions not working for hierarchical post type
- Display all posts in main category and 1 subcategory
- Root slug of taxonomy returning 404
- Show category ID on custom post type
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Custom Post Type / Two level deep taxonomy (cat. and subcat.) uri problem (error 404)
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Custom post type posts don’t show in archive widget
- Archive for a Taxonomy of a Custom Post type
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Return the name of the post type
- Invalid Taxonomy
- archive as a page, so that it can be added in the wp_menu_nav
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Remove categories taxonomy from custom post type
- custom hierarchical taxonomy and custom post type list contains surplus posts
- Changing CPT slug and taxonomy already registered in parent theme
- Dynamic category name in query post
- Custom Post Type Archive Pagination
- Archive Template being used instead of Category Template for Custom Post Type
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- How can I increase the post count for custom post types only?
- Is possible register two archive pages for single custom post type?
- Menu for taxonomies and posts belongs to taxonomy
- How to automatically create a terms based on each post of a post type
- Setting Custom Post Type Parents/Hierarchies
- Custom Post Type Archive Page showing as 404
- Custom taxonomy terms hierarchical navigation
- Custom taxonomy returns 404 even with saving permalinks
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- how to create custom taxonomy drop downs for parents and child
- Get name CPT with slug taxonomy
- hierarchical Custom post type child permalink not found
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- Automatically / dynamically populating tags in custom post type
- Organising custom taxonomies and custom post types
- Filter Term By Parent Term – Custom Post Type
- Custom nav menu current item custom link problem
- get children from current variable (taxonomy) via shortcode
- Stop Custom post type from being searched via URL
- List all posts from custom post type by taxonomy
- archive-{custom_post_type}.php not getting recognized wordpress
- General question about Parent and Child Post type relationships
- Display results from two Custom Post Types in page template
- Pagination not working for archive
- Rewriting hierarchical post type
- Get all active posts that are tied to a custom taxonomy for a custom post type