Distributor 2.3.2 does not create parent-child relationships for terms when creating terms

Open
#1,410 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@boonstraworks is already working on this.

Since Oct 20, 2026.

  • #1413 by @boonstraworks — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php, wordpress
Domain
backend, databases

Research direction

Start by tracing the code that creates or assigns taxonomy terms when a post is pulled to a receiving site; the issue does not name a file or test. Check how the parent term is represented and handled in that flow, then add or update a test for a child term whose parent already exists on the receiving site. Done means the pulled term remains a child of that parent.

Written by the indexing model from the issue text.

Description

type:bug
Describe the bug

In hierarchical taxonomies, child terms are recreated on receiving sites without having their parent terms properly set.

Steps to Reproduce
  1. On the origin site: Create a post. Assign that post a term in a hierarchical taxonomy that is a child term of a parent term. This can be as a new child term, created contemporaneously with the new post, or as a new child term created on an existing post, or as a child term created and then later assigned to a post.
  2. On the receiving site: Pull the post to the receiving site.
  3. In the receiving site's block editor, view the post's hierarchical taxonomy terms. The term that was a child term on the origin site will be shown as a top-level term, not as a child term of the parent term, even though the parent term also exists on the receiving site.
Screenshots, screen recording, code snippet

Origin site:

Image

After pulling that post via Distributor to a receiving site:

Image
Environment information

No response

WordPress information

Seen in WordPress 6.6 through 7.1

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
PHP
Stars
715
Forks
160
Avg merge
6h 10m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/distributor

All issues in 10up/distributor

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.