Pretty bizarre issue. I popped in that same code and successfully replicated the issue. I then removed the calls to my_add_term
, reset my permalinks (not sure if this helped or not but worth mentioning that I did it), added an item, reloaded, and they all showed up in heirarchy as expected.
In the calls to my_add_term
, you’re passing $postID
but that isn’t defined, so I’m guessing that’s where the issue is coming from. Bottom line, you don’t need to define Print and Digital as your base categories with every single page load, so that code can reasonably be removed. Let me know if this fixes it for you!
Cheers~
Related Posts:
- How do I get the top-level terms in a custom taxonomy?
- Including all terms in wordpress tax_query
- Taxonomy Templates… by hierarchical level?
- Exclude specific slug in ‘get_terms’
- Fixing Pagination with Custom Taxonomy Archive
- Custom taxonomy position in admin panel
- Filter all queries with a specific taxonomy
- How to group by taxonomy on Custom Post Type archive
- How to remove parent taxonomy name from the title generated by wp_title()?
- Group posts that matches a term in a loop
- Custom taxonomy template loop
- Adding session variable and/or cookie based on user-selected input
- How to Reverse Taxonomy Order
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- Limits amount of terms displayed? Is it possible?
- How to add custom taxonomy to search
- How to List Parent Term Links for Custom Taxonomy With & Without Children?
- Correct Way To Show Custom Taxonomy for Image Attachments on Template File
- Sort custom taxonomy terms order by both count and name
- How to list all record from one custom taxonomy start with only one letter i.e A
- Taxonomies in URL
- Check if term is in a taxonomy?
- List taxonomies in a dropdown in theme’s option panel
- Create multiple rewrite endpoints for custom taxonomy archive
- Make a taxonomy column sortable in the admin?
- Display only first level children of my custom taxonomy categories
- Register Taxonomy earlier so it can be used in functions.php and admin-ajax.php
- How to show only terms by id or slug on edit-tags.php (custom taxonomy manage page) for a custom taxonomy
- Display the description of taxonomy terms
- Add “All Posts” button to custom post taxonomy filter with ajax in wordpress
- Woocommerce: How to change the add to cart text in a certain category? [closed]
- How to display custom taxonomy images on index.php?
- Meta query for a custom taxonomy on attachment
- Meta description – template code to get category description
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- quey posts from different categories with taxonomy
- Get number of post who belongs in two taxonomies!
- Checkbox onclick filtering on the same page
- Get parent and children taxonomy in different dropbox
- Custom Taxonomy Not Working When added to WordPress Search
- Custom taxonomy terms in the admin site is not saving for widget
- Problems with taxonomy quick edit box
- WordPress thinks my custom taxonomy pages are search pages #seo
- Adding custom taxonomy in my existing category URL
- How to dropdown custom taxonomy?
- Sorting main query by custom taxonomy slug
- single_cat_title equivalent for custom taxonomy?
- WP Multisite: Are custom taxonomies specific to each site only?
- My taxonomy won’t be registered. Can’t see it in my back-end
- Make child taxonomy categories use a set template
- How to customize taxonomy archive template files for subterms?
- Copy/clone/associate Custom field to Custom Taxonomy
- Query posts using custom taxonomy and selected terms
- Foreach loop duplicating a taxonomy thumbnail image
- get_the_tags Conditional display of a custom taxonomy
- Load a certain functions file for a certain taxonomy
- Output all terms in a custom taxonomy and add a “active” class only to the ones attached to the current post
- one post per term taxonomy
- How can I change the output display of my pagination?
- Custom permalink accept any params
- Terms change id after importing
- How do I get the labels from a post
- Hide custom taxonomy from easy admin
- Displaying user selected custom tags/taxonomies on the front-end
- how to use tax_query to apply both terms or one if one is empty
- Get current page term title to use in WP_Query
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- Running a function only once when a taxonomy term is changed
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Displaying my custom taxonomies in a using the_term_list()
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Use wp_list_categories to list parent categories from actual term
- is there a way of getting term children that only shows those from two taxonomies
- Get Posts Related to Category By category id or slug
- Wp_insert_term doesn’t work from separate file with custom taxonomy
- How to add a dynamic dropdown derived from custom taxonomy
- How to create filter’s for custom taxonomy page
- Order get_terms by count using a custom taxonomy hierarchy
- How to create a non removable taxonomy term?
- How to show category list in WordPress
- custom taxonomy not showing up after adding capabilities upon updating to WP 5.1.1
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- transfer two existing taxonomy terms into one custom metabox
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Catchable fatal error: Object of class WP_Error
- Templates files for custom post type with custom tags
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- Creating a Taxonomy Page [duplicate]
- WordPress shortcode Issue!
- Extra fields on categories that is available via the WP-API?
- Tax Query not working
- Taxonomy archive page have no post
- What’s the proper WordPress URL for the template of my custom taxonomy?
- WordPress show posts from children terms of a taxonomy term
- how to import custom taxonomy (& terms)
- How to create a page that lists custom taxonomies with links?
- query posts returns 10 records
- Getting taxonomies specific to categories
- How to add/enqueue Custom CSS for a custom taxonomy page?