Skip to content

Document the abilities and how agents should display related posts - #150

Open
fabiankaegy wants to merge 3 commits into
feature/abilities-related-query-blockfrom
docs/abilities-related-content
Open

fabiankaegy wants to merge 3 commits into
feature/abilities-related-query-blockfrom
docs/abilities-related-content

Conversation

@fabiankaegy

Copy link
Copy Markdown
Member

Description

Stacked on #148.

The README didn't mention the abilities. This adds an "Abilities" section after "REST API" that covers:

  • What gets registered, from which WordPress version, and the capability checks.
  • One line per ability, including get-related-query-block from Add an ability that returns related posts Query Loop markup #148.
  • A "Displaying related content" subsection with the rule for agents. Related posts come from a Query Loop filtered by the relationship, and IDs copied into a hand-picked list go stale. It lists the steps: find the rel_key with get-post-relationships, get the markup from get-related-query-block, and change the inner blocks but leave the query attribute alone.

The Overview now links to the new section.

#149 documents the Query Loop block and its variation separately. It touches a different part of the README, so the two shouldn't conflict.

How to test

Read the new "Abilities" section in README.md.

Changelog Entry

None. Docs only.

fabiankaegy and others added 3 commits October 14, 2026 08:22
…ated posts

The read-only abilities return related IDs, which agents tend to paste
into a hand-picked list. The descriptions now say to use a Query Loop
filtered by the relationship for display, and rel_name is described as
the relationship query name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
content-connect/get-related-query-block builds the core/query markup
for a post's related posts through one post-to-post relationship. The
attributes match what the block editor extension stores, so the block
opens unchanged in the editor and renders through the existing query
loop integration. The other ability descriptions point to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant