Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Loop: Add keywords to help make block more discoverable #65493

Closed
mikachan opened this issue Sep 19, 2024 · 2 comments · Fixed by #65515
Closed

Query Loop: Add keywords to help make block more discoverable #65493

mikachan opened this issue Sep 19, 2024 · 2 comments · Fixed by #65515
Labels
[Block] Query Loop Affects the Query Loop Block Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Enhancement A suggestion for improvement.

Comments

@mikachan
Copy link
Member

What problem does this address?

The Query Loop block currently doesn't include the keywords key in its block.json file. I think adding some aliases or additional descriptors for the block would make it more easily discoverable in the Editor.

For example, if a user is not already aware of the block, "Query Loop" is not immediately obvious as a block that would show a list of posts from your blog, or a list of custom post types. When searching for terms like this in the block inserter, the Query Loop is not returned in the search results.

What is your proposed solution?

Add a keywords key to packages/block-library/src/query/block.json which includes some common terms or aliases, such as:

  • posts
  • list
  • blog
  • blogs
  • post types
@mikachan mikachan added [Type] Enhancement A suggestion for improvement. Good First Issue An issue that's suitable for someone looking to contribute for the first time [Block] Query Loop Affects the Query Loop Block labels Sep 19, 2024
@dhruvang21
Copy link
Contributor

Hi @mikachan
i have raised PR for this issue :- #65515

Also some more keyword suggested:-

  • post query
  • post loop
  • blog posts
  • post list

@mikachan mikachan linked a pull request Sep 20, 2024 that will close this issue
@mikachan
Copy link
Member Author

Nice, thank you @dhruvang21!

With these additional keyword suggestions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants