WordPress’ terms and taxonomies are spread over three tables in the database. Those tables are wp_terms
, wp_term_relationships
and wp_term_taxonomy
– see the codex article on Database Description for more details. The parent
relationship is part of the wp_term_taxonomy
table, so you should inspect the differences between your environments in this table. wp_terms
does not store such parent
relationship information, so it’s no surprise that copying it didn’t change anything for you.
Related Posts:
- Is There a Difference Between Taxonomies and Categories?
- How To Find Out WordPress Category Table in MYSQL?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- How to display non-hierarchical taxonomy as terms with checkboxes?
- get_categories for custom post type with a specific custom taxonomy attached
- Control term order on a per-post basis
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- Can a Child Category Have More than One Parent?
- Combine two taxonomies in a hierarchical tree
- Weird behaviour when adding terms/term_taxonomies programmatically
- How can I select a primary category?
- wp_update_nav_menu_item() to insert categories
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to make custom taxonomy check boxes like ‘Categories’
- Create terms when registering taxonomy?
- How to create non-unique sub-category slugs?
- How to convert regular categories to custom taxonomy?
- creating categories programmatically
- Natural sort / ordering wp_dropdown_categories
- How to get posts using category slug in ClassiPress?
- Best way to categorize/populate a magazine style layout
- Combining these queries? (Same taxonomy term + same category as post)
- sidebar troubles, taxonomy trouble
- Displaying posts of given category
- get_the_category – display only a single category for a post (not all categories)
- display category with background color
- Category post count is not correct
- Disable Category Taxonomy
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- Automatically adding tags and categories into Post Excerpt for searching
- How can i add service category here? [duplicate]
- Show subChild categories
- How can i change sort category view starting from child then parent, not alphabetically
- WordPress 5.4 and higher: Filter posts by category 1 AND category 2 in API requests
- How to set the same base url for two different taxonomies?
- Limit categories to hierarchal depth of 2
- How to set acf color field as background color to product category
- How to target all woocommerce categories that don’t have any subcategories in them?
- Show the parent taxonomy by creating shortcode in woocommerce?
- Create categories manually in database
- Filtering posts in category by tag URL
- WordPress Portofolio Conditional Templating – functions php
- Parent Category and Subcategory default text generated with category
- Get WooCommerce product category list in functions.php
- Post List by category and under custom taxonomy
- Bulk assign posts to a category using SQL (MySQL)
- get taxonomy list in a page in the wordpress
- Number of categories slowing down the site
- Image Upload Custom Form Field for Category and Custom Taxonomy
- outputting taxonomy hierarchy
- Search Replace Database ONLY for posts of certain category?
- Confused about category.php template – not working
- Filter custom taxonomy posts via AJAX
- Create duplicate category page with content variations
- Why use hierarchical taxonomies instead of many custom taxonomies?
- Renaming default category taxonomy?
- How get all media from a posts category by db?
- How to echo Tags and Categories as plain text
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- How to Manage and link certain custom taxonomy?
- Display List of Categories Within a Custom Taxonomy
- Display Taxonomies in loop with template args
- How to add a post with new Taxonomy without assigning to default category?
- Backend – Categories and Menus conflicts
- Grouping parent categories into sections
- get_adjacent_post_link excluded_terms ignored
- Match two taxonomies to display a specific content
- Taxonomy for custom post type not found
- Category base 404 – fix
- Why is my post categories not displaying?
- Display only the latest post
- Problem importing categories and sub-categories
- Return selected categories only in custom page meta box?
- Assign a category by user and customize the edit-tags.php?taxonomy=category page
- list taxonomy based on taxonomy
- add an image field to wordpress category
- get IDs from links categories
- Multiple Parent Category URLs
- Chained drop-down menu for custom taxonomy using chained.js
- Show parent-child relationship for categories in the wordpress admin
- Display only one level subcategory in wordpress
- Converting Categories (with ACF fields) to custom taxonomies
- Woocommerce custom taxonomy order
- Hook action when create new category [duplicate]
- Taxonomy term RestApi data 10 rows limitions
- Fetch all categories from database
- Order Categories by Character Count
- Images as Categories
- hide_empty property not working when using get_terms
- Add custom fields to Woocommerce Category Page
- Quick Edit on taxonomy names results in error
- How to make /category/ URL load properly instead of 404 error?
- How to get parent and child sub category (Taxonomy) order to display
- How can I get the categories and subcategories separately?
- When using get_terms with hide_empty = true, terms that only contain scheduled posts are not returned. How to override this?
- Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
- get_term returns different results, sometimes empty, sometime the correct list