Skip to content

Conversation

@cr0ybot
Copy link
Contributor

@cr0ybot cr0ybot commented Aug 27, 2025

What?

Adds term link to block bindings.

Why?

This enables use of the button block in a Term Template when using the Terms Query block.

How?

Adds link from the term entity response to the available block binding keys for term-data.

Testing Instructions

  1. Add the Terms Query block to a page
  2. Select any variation/starting point
  3. Add a Button block into the Term Template
  4. Select the url Attribute and choose "Link"

Testing Instructions for Keyboard

Screenshots or screencast

Screenshot 2025-08-27 at 8 51 15 AM

@github-actions
Copy link

github-actions bot commented Aug 27, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: cr0ybot <[email protected]>
Co-authored-by: mikachan <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

This was referenced Aug 27, 2025
@mikachan mikachan added the [Type] Enhancement A suggestion for improvement. label Aug 29, 2025
Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! 🙌 Works as described!

"core/paragraph",
"core/heading",
"core/image",
"core/buttons",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mikachan
Copy link
Member

Ah, I missed the static analysis check. Looks like npm run docs:build needs to be run to update the docs.

@cr0ybot cr0ybot force-pushed the add/terms-query-block-binding-term-link branch from 5e0d1ec to adf3b4e Compare August 29, 2025 20:24
@cr0ybot
Copy link
Contributor Author

cr0ybot commented Aug 29, 2025

@mikachan Whoops, my bad. I've rebased against the primary branch and run the docs build.

@mikachan mikachan force-pushed the add/terms-query-block-container branch 2 times, most recently from 9cbbd4e to de054eb Compare September 1, 2025 14:22
@mikachan
Copy link
Member

mikachan commented Sep 1, 2025

Whoops, my bad. I've rebased against the primary branch and run the docs build.

No problem. It looks like the base branch needed updating with the latest from trunk as well, as the Storybook smoke test wasn't running successfully. I've updated the base branch and merged it into this PR, hopefully we'll get all green tests this time.

@mikachan mikachan merged commit b973dc3 into WordPress:add/terms-query-block-container Sep 1, 2025
67 checks passed
@t-hamano t-hamano added the [Block] Terms Query Affects the Terms Query Block label Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Terms Query Affects the Terms Query Block [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants