Spaces inside spaces
The chapters of a national body, the departments of a company, the classes of a school: with this component on, a space holds other spaces, and those hold more, up to four levels in all. Each keeps its own posts, members and admins, while the space around it keeps them together.
It's switched on under Settings → Components, with the other components of spaces, and its settings are a card of their own under Settings → Spaces, below the first one:
- Who makes a space inside another: at first the site administrators and the admins of the space it goes inside. A space role counts in the space the new one goes inside, so the admins of the spaces around that one count too.
- Levels: how deep spaces go, the top one counted, from two to four.
- A space feed shows the posts of the spaces inside it: what each space starts with. The admins of each space change it in its own settings.

A space with spaces inside it
The spaces inside one are listed beside its page, the first few with See all, and on a tab of their own after Posts. The tab is called Sub-spaces unless the space gives them a name of its own, such as Chapters, Departments or Run groups, which its tab and its cards then use. A visitor or a member sees only the spaces inside it they may see.


The spaces directory opens on the spaces at the top, each card saying how many spaces are inside it. Your spaces and a search list every space, wherever it is. On the page of a space inside another, the trail above its header leads up through each space it is in.
Making a space inside another
New on the tab opens a short form: its name, what it is about, who can see it and how people join. A space inside another is never seen by more people than the space it is in, so a choice more open than that one is shown but can't be picked.

Only members of Trail Runners can join is on at first. Others are asked to join the space around it first, and a member who leaves that space leaves this one too. A space inside a hidden space always takes only its members, as only they may know of it.
Who runs them and who is in them
- The admins of a space are admins of every space inside it, at any depth, except where they are banned. Someone who runs a space around it can be removed or given another role only by someone who runs a space higher still.
- Leaving a space takes a member out of every space inside it. A member who owns a space inside it hands that space on first.
- Who sees what is kept by the tree: a space inside a hidden one is known only to its members, a ban holds in every space below, and none is more open than the space it is in. A space can't be made more open than that later either: on its Privacy tab the choices more open than the space it is in are shown but can't be picked.
- With Paid membership, a space inside one that is open by plan follows its plans and is never open to more of them. With Ratings and warnings, a space inside one that rates its posts higher can't rate them lower.
Its own settings
The admins of each space set three things on the Privacy tab of its settings, in the card Spaces inside spaces: Only members of … can join (for a space inside another), Its feed shows the posts of the spaces inside it, and What the spaces inside it are called.
With its feed on, the feed of a space lists the posts of every space inside it too. Each reader sees only the posts they may read in each, and each post says where it was posted.

Moving a space
The Place tab of the settings of a space moves it inside another space, or back to the top, with everything inside it. Only the admins of the space it is in move it, and only the site administrators make a space a top one. A place it can't go to is listed with the reason: a hidden space whose members would lose it, too many levels with what is inside it, a space of another kind.

Automatic members
The Automatic members tab gives a space a rule: members who match it are added by themselves, and taken out when they no longer match. Nobody who joined by hand is taken out, and nobody who left is put back. A rule is any or all of these:
- A profile field: one of its answers, or the words typed. A rule reads only a field every member may see on a profile.
- A member type, where member types are on.
- Time since they joined: in the last so many days, counted again every day, so members leave the space as the time passes.
- Membership of the space it is inside.
The tab says how many members match and how many are in the space by the rule. A member added to several spaces by one change is told once, naming them.

A role until a date
An admin or a moderator of a space can hold the role until a date: Set an end date in the menu of the member on the Members tab. They and the space owner are told a week before, and the day after the last day they are a member again. The owner has no end date: they hand the space on first.

Deleting a space with spaces inside it
Deleting a space asks what becomes of the spaces inside it: they move up into the space it was in (or to the top), with their posts and members, or they are deleted too, with their posts. A space put in the trash takes them along or moves them up the same way, and a restore puts the tree back.
Notifications
Members are told when a rule adds them to a space and when a role of theirs is ending or has ended. Both are under Spaces in their notification settings.
Changing spaces inside spaces
The pages of Poly Community are drawn by the browser from data: one file of each page for every reader, and one answer of data when a member moves to it. Keep a change to spaces inside spaces that way, so a space and its tree stay fast. Pages drawn from data gives the rules, the API and a recipe.
- Showing more on a space: data and a template, never HTML drawn for one reader. What every reader sees, such as a fact of your own about each space inside it, goes in the data the page is drawn from and is bound in a template. What one reader alone sees, such as whether they belong to each space inside it, is a part registered on
poly_community_register_page_data, its answer returning data, bound withstate.partHere.wp poly-community page-data check spacesays whether a space is one drawing for a visitor, a member and an administrator, and what to change if it is not. - With a coding agent such as Claude Code, Codex or Gemini CLI: give it the page above and ask for the change in its words, then have it run the check. For example: "In Poly Community, show on each space inside a space whether the reader is a member of it: register a part on poly_community_register_page_data that returns the ids of the spaces the reader is in, and bind a mark in the template of the list with state.partHere. Draw no HTML for one reader in PHP. Run wp poly-community page-data check space and fix what it reports."
- In the admin: the settings above, and Settings → Words for any of its texts.
- In the Site Editor: the tab of the spaces inside a space is drawn from the blocks Sub-spaces and Sub-space count, and Space place and Automatic members are its blocks for a page of a space.
Changing a component sets out the ways every component changes.
Switched off
Nothing is deleted. The spaces keep their places in the tree and who may see them, as spaces themselves keep that, and a role ends on its date all the same. The tabs, New, the rules and the notices wait until it is on again.