The only really interesting (and very important) part of the 3rd query is this:
'project_location_children', 'a:7:{i:22;a:1:{i:0;i:23;}...etc...}}'
The a:n:{i:n; etc }
stuff is a serialized PHP array.
WordPress – for some historical reason – keeps track of term children in one option entry per taxonomy term. The painful thing is, that a lot of people don’t know or forget about this. And if you forget about this, then the only chance to actually notice this behavior is when you look at the taxonomy term list in the admin UI. There you will see missing parent/child relationships – if you look close.
Rule of thumb:
When manually importing legacy or third party data into WordPress and when mapping it to taxonomies do not forget to set and/or update this option entry!
Else the sky will fall on your head.
Related Posts:
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Multi-select field for Taxonomy can’t save the value
- Looking for suggestions on creating simple database (Help!!)
- How to permanently delete a taxonomy
- How to use taxonomies on attachments with the new Media Library?
- Add custom taxonomy fields when creating a new taxonomy
- How to display custom taxonomies in posts?
- Creating Custom Taxonomy without mapping to any post type
- Exclude specific slug in ‘get_terms’
- wp_insert_term – parent & child problem
- Widget to display custom taxonomy tag cloud
- Hook to process a new taxonomy tag before it is created?
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes
- Combine multiple custom user taxonomy in single url
- Adding session variable and/or cookie based on user-selected input
- How to display term description in empty terms archive?
- Display sub-taxonomies based on SELECTED parent-taxonomy
- Checking if a Page has an Associated Term?
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- Query Posts by taxonomy/Taxonomy Child Custom order
- How can I get WP to build a feed based on multiple taxonomy terms
- How to Query Database for posts with certain Taxonomy Term
- Change permalink of post if it belongs to custom taxonomy
- Get pages only with a specific taxonomy
- Share taxonomy between user and posts?
- Make a taxonomy column sortable in the admin?
- How to filter terms from a custom taxonomy by a usermeta value on all screens and templates
- How to obtain the link/URL to the feed of a custom taxonomy?
- get_term_children doesn’t return an array of children terms
- Get taxonomy parent using child slug (from merged taxonomies)
- How to display custom taxonomy images on index.php?
- get_term and get_term_by return null or false, even though term exists
- Display Taxonomy Terms in an option tag with value being the slug
- Modify “View” in admin panel for custom taxonomy
- Get number of post who belongs in two taxonomies!
- Hide product categories and taxonomy terms in menu if empty
- Custom taxonomy forms for user profile
- Query posts by taxonomy with current term
- get the taxonomies terms associated with users
- WordPress thinks my custom taxonomy pages are search pages #seo
- Add Taxonomy Subcategory To Permalink
- problem in taxonomy-{taxonomy}.php pagination
- Adding custom taxonomy in my existing category URL
- How to get posts which must match both custom taxonomies?
- Custom Taxonomy with tax_query
- How to add images to taxonomy terms? [duplicate]
- Why get_page_template() doesn’t show taxonomy template file name?
- Edit custom taxonomy description programatically
- Get taxonomy name for the current post
- View the complete list of a taxonomy in the navigation menu
- one post per term taxonomy
- How can I change the output display of my pagination?
- How to get attached image to taxonomy..?
- How to get list of only custom taxonomies?
- Add custom taxonomy as a css class
- Taxonomy page shows category in title
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- Use wp_list_categories to list parent categories from actual term
- Amend taxonomy to search in wordpress admin
- Unique taxonomy for post
- Trash Bin for Categories?
- How to add a dynamic dropdown derived from custom taxonomy
- Retrieve the child terms by having the parent’s information
- add pagination in wordpress page template
- How to create a non removable taxonomy term?
- Custom dropdown list taxonomy not saved
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- How to show category list in WordPress
- Filter “get_terms” query
- Get post meta value outside of the loop
- Unable to create a new taxonomy
- Change link of taxonomy when get_the_term_list( is used?
- generate random slug when adding taxonomy
- transfer two existing taxonomy terms into one custom metabox
- Custom taxonomy shows full articles
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- qtranslate-x problem with custom term description
- Templates files for custom post type with custom tags
- Creating a Taxonomy Page [duplicate]
- Change order custom taxonomy
- Extra fields on categories that is available via the WP-API?
- Custom taxonomy – query returns an error
- Register custom taxonomy from a Advenced custom field option page
- List of taxonomy archive index page links
- Get Posts with matching lowest taxonomies
- Any way to make custom taxonomy field searchable?
- query posts returns 10 records
- Insert taxonomy term to different table
- Getting taxonomies specific to categories
- Remove Tag Cloud Words from Custom Taxonomy
- How to add/enqueue Custom CSS for a custom taxonomy page?
- wp_get_object_terms count on taxonomies within an category archive
- Make custom post type display with custom taxonomy in url
- How do I create a term for every value of a post meta?
- Save selected terms in order of custom taxonomy in post
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?
- Taxonomy entries are spawning copies of existing entries with the new title as the existing ID, since upgrade