“Category Siblings” includes children instead of siblings in deep category

Posted in: Newspaper
Post count: 364

Hi,

I’ve encountered a bug with the “Category Siblings” feature in the tagDiv Composer when dealing with nested categories beyond two levels.

Here’s the structure I’m working with:

Cats (Level 1)
├── Cat Breeds (Level 2)
│ ├── Naked Cats (Level 3)
│ │ ├── Sphynx (Level 4)
│ │ ├── Don Sphynx
│ │ └── Peterbald
│ ├── Short Haired Cats
│ └── Long Haired Cats

On the “Naked Cats” category page, with “Category Siblings” enabled in the module, I expect to see:

  • Short Haired Cats
  • Long Haired Cats

…but instead I’m seeing:

  • Sphynx
  • Don Sphynx
  • Peterbald

These are children of “Naked Cats”, not its siblings, so the logic appears to be incorrect when used on level 3 categories (or deeper).

✅ Expected behavior:
“Category Siblings” should display categories that share the same parent as the current category.</p>

❌ Actual behavior:
It displays child categories of the current category instead.

Could you please confirm if this is a known issue?

In the meantime, it would be great if you could provide a temporary workaround or filter hook I can use to correct the behavior until a proper fix is released.

Thank you!

Post count: 35449

Hi,

Thank you for bringing this to our attention. I’ve notified one of our developers, and they will look into the issue shortly.

We appreciate your help!

Post count: 364

Hi Calin,

Thanks for the quick response — I appreciate you escalating this to the dev team.

In some situations, I actually prefer the current behavior where child categories are displayed. So when you address the bug, it would be great if you could consider adding a third option in the dropdown for:

Display category

  • Siblings
  • Parents
  • Child ✅ (suggested)

That way, we can explicitly choose the desired behavior depending on the context.

Thanks again for your support!

Best regards,
David

Post count: 35449

Hi,
Thanks I edited the notice using your advice.
Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.