The hierarchical
argument when registering a custom post type should be set to false
which is also the default setting
hierarchical(boolean) (optional)
Whether the post type is hierarchical (e.g. page). Allows Parent to be specified. The ‘supports’ parameter should contain ‘page-attributes’ to show the parent select box on the editor page.Default: false
Note: this parameter was planned for Pages. Be careful, when choosing it for your custom post type – if you are planning to have many entries (say – over 100), you will run into memory issue. With this parameter set to true WordPress will fetch all entries of that particular post type, together with all meta data, on each administration page load for your post type.
Related Posts:
- Mixing custom post type and taxonomy rewrite structures?
- Can multiple custom post types share a custom taxonomy?
- How to Add Custom Fields to a Custom Post Type?
- Display current taxonomy term when inside custom post type
- limit selection of custom taxonomies to one?
- Filtering a custom post type by custom taxonomy in archive template
- get term archive url / link
- Get term slug of current post
- $wp_query->queried_object->ID throws warning: Undefined property
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- Custom Taxonomy Template Post List with Sort Order
- The Operator “NOT IN” Does Not Work In tax_query
- wp_insert_term doesn’t work with custom post type’s taxonomy
- Post type archive page not working
- How to get the parent’s taxonomy?
- Taxonomy posts on Archive page
- Help with hierarchical custom taxonomies and permalinks…almost there
- Archive or taxonomy pages not working for custom post type
- Custom Taxonomy returns no posts
- Display taxonomy term only if there’s a value
- How to get only one category of custom post type?
- Create separate template for shared custom taxonomy with shared terms
- Custom content type meta_box_cb does not run
- Custom/separate categories for custom post type
- Custom Post Type Pagination & duplicate posts
- Connecting a taxonomy with a post type
- How to achieve representation of streets index with custom taxonomies
- Optimised Code for Pulling Taxonomy Posts
- Custom post types and permalinks
- How to filter custom taxonomy categories on archive?
- Fetch taxonomies by custom post type id array
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Normal pages as children of my Custom Post Type
- Custom post type and taxonomy slug issue
- Custom template won’t load for a custom post type (custom permalinks used)
- Received nothing after executing AJAX post function
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Genesis filterable portfolio isotope [closed]
- Adding a custom post type taxonomy template in plugin
- Loading custom content type from ajax results?
- Custom Taxonomy Doesn’t Show Up
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Create template for taxonomy results limited by Custom Post Type
- Query Custom posts of same taxonomy as the post itself
- Display as tree terms of taxonomy and custom posts for each term of taxonomy
- Post count by month of taxonmy term
- Query taxonomy of taxonomy of custom post type
- Pretty URL for custom search for custom post type
- How to conditionally redirect to the post from a taxonomy page?
- First custom field value (out of several) displayed twice after query
- Custom while loop for hierarchical display of a taxonomy
- Grouping of CPTs and taxonomies into menu groups in admin
- set permalink for CPT
- Taxonomy/Custom post type structure suggestion on a movie site
- Check if post has specific tag_ID in custom post type
- custom post type vs. conditionally displaying meta boxes for specific terms?
- WP_query – Filter by tax_query and meta_query using multiple select
- Hide meta box for everything BUT a certain custom post type
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Display custom tags for custom post listing page
- How to display custom taxonomy term meta on custom post type
- Page listing all categories for CPT
- Grab all Custom Posts by multiple taxonomies and terms
- What should I learn to develop event management in wordpress? [closed]
- If custom taxonomy else conditional [closed]
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Custom endpoint filtering post by custom taxonomies
- Custom post type rewrite url structure with taxonomy and sub taxonomy
- Get taxonomy name used in a current post
- Custom Post Type with Category Separate
- Define multiple prefixes for custom post type
- Custom Taxonomy Archive generates 404
- Related posts by taxonomies does not work , what could be the reason?
- Display first post of a term in taxonomy template
- How to transfer categories (default) to custom taxonomy?
- Order archive custom posts by taxonomy term [duplicate]
- Support for author does not show author column in post table in dashboard
- Problem displaying posts for a category in a custom taxonomy
- Create Inclusions and exclusions
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Force WordPress to only match URL in category
- Same permalink structure for all post types?
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Status & Taxonomies
- WordPress custom post type
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- Show Custom Post Type taxonomy term that matches custom field
- How to Display Custom Taxonomies in an Un-ordered HTML List
- link posts to custom post type
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- how do I create a breadcrumb to work with multiple custom taxonomies
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- See the process of creating a taxonomy and tell me where I made a mistake
- Navigation won’t update to show full path to single post
- Advise on Custom Taxonomies and Structure
- Custom taxonomy meta fields
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Problem with shortcode
- WP Query – Can’t get posts with specific taxonomy