Skip to content

[Block Library - Post Terms]: Add dynamic variations of feeds #65351

Closed as not planned

Description

@carstingaxion

What problem does this address?

I did not find a blocky way to get a list of all feeds a reader may want to subscribe to, for a given post. I was looking for a block equivalent to get_term_link().

Once again: for GatherPress, I created a block variation of the post-terms block that seemed so simple and general, that I thought it might be better to ask, if we don’t want to support that from core.

What is your proposed solution?

I’d like to take #39837 one step further and register another set of core/post-terms variations which will be populated with the feed urls of the selected terms.

While the block should use ‚rss‘ as its default feed type, a radio control could be pre-populated with the registered feed types to let an editor choose from.

In my GatherPress use-case, I wanted to use such a block to show the subscribe-able iCal endpoints.

Bildschirmfoto vom 2024-09-14 23-29-23

Because I did this already for GatherPress, I can easily share some code or even create a PR.

Activity

  1. carstingaxion commented on Sep 14, 2024

    @carstingaxion
    ContributorAuthor

    Friendly ping asking for your opinions: @paaljoachim, @ntsekouras and @jeherve

  2. paaljoachim commented on Sep 24, 2024

    @paaljoachim
    Contributor

    I went ahead and posted in the PR: #39837
    So that people there would get information about this issue.

  3. carstingaxion commented on Sep 24, 2024

    @carstingaxion
    ContributorAuthor

    Cool, thank you @paaljoachim !

  4. ellatrix commented on Nov 12, 2026

    @ellatrix
    Member

    Thanks for the idea and for sharing how you built it for GatherPress, and sorry it sat so long.

    I tested this on trunk: a post in a "Concerts" category with a Post Terms block (Categories). Each term links to its archive page, not its feed:

    Trunk: Post Terms links to the category archive

    I'm closing this as not planned. Links to a term's feed (RSS, Atom, or a custom feed like iCal) serve a small group of sites, and they can be built today as a plugin with standard APIs. A small dynamic block made with register_block_type() that calls get_term_feed_link() for each of the post's terms gives the feed links, and its feed type argument can point to other registered feeds:

    A plugin block: the same term now links to its feed

    Since this issue was opened, no maintainer has picked it up, and I found no other issue asking for it. GatherPress has since shipped its own subscribe links (GatherPress/gatherpress#1686), and a plugin like that can be shared in the Block Directory. If more people need this in core, we can reopen.

    Partly automated with help from Claude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions