-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Block Library - Query Loop]: Add parents
filter
#40933
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ntsekouras
added
[Type] Enhancement
A suggestion for improvement.
[Package] Block library
/packages/block-library
[Block] Query Loop
Affects the Query Loop Block
labels
May 9, 2022
ntsekouras
requested review from
mcsf,
Mamaduka,
youknowriad,
aristath,
paaljoachim and
carolinan
May 9, 2022 11:50
Size Change: +632 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
Mamaduka
reviewed
May 11, 2022
packages/block-library/src/query/edit/inspector-controls/parent-control.js
Outdated
Show resolved
Hide resolved
Mamaduka
reviewed
May 11, 2022
packages/block-library/src/query/edit/inspector-controls/parent-control.js
Outdated
Show resolved
Hide resolved
Mamaduka
reviewed
May 11, 2022
packages/block-library/src/query/edit/inspector-controls/parent-control.js
Outdated
Show resolved
Hide resolved
ntsekouras
force-pushed
the
add/parent-filter-in-query-loop
branch
from
May 13, 2022 07:11
dde8d1d
to
30e5bb4
Compare
Mamaduka
reviewed
May 13, 2022
packages/block-library/src/query/edit/inspector-controls/parent-control.js
Show resolved
Hide resolved
ntsekouras
force-pushed
the
add/parent-filter-in-query-loop
branch
from
May 13, 2022 07:47
0063668
to
76417f9
Compare
Mamaduka
approved these changes
May 13, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you, Nik!
This was referenced Sep 9, 2022
bph
added
the
Needs Dev Note
Requires a developer note for a major WordPress release cycle
label
Sep 13, 2022
pento
pushed a commit
to WordPress/wordpress-develop
that referenced
this pull request
Sep 15, 2022
…enberg repository. This changeset backports changes from the following Gutenberg pull requests: - [WordPress/gutenberg#43590 gutenberg#43590] Add a filter to `build_query_vars_from_query_block` - [WordPress/gutenberg#40933 gutenberg#40933] Block Library - Query Loop: Add parents filter Props ntsekouras, bernhard-reiter. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54175 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith
pushed a commit
to markjaquith/WordPress
that referenced
this pull request
Sep 15, 2022
…enberg repository. This changeset backports changes from the following Gutenberg pull requests: - [WordPress/gutenberg#43590 gutenberg#43590] Add a filter to `build_query_vars_from_query_block` - [WordPress/gutenberg#40933 gutenberg#40933] Block Library - Query Loop: Add parents filter Props ntsekouras, bernhard-reiter. See #56467. Built from https://develop.svn.wordpress.org/trunk@54175 git-svn-id: http://core.svn.wordpress.org/trunk@53734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
github-actions bot
pushed a commit
to platformsh/wordpress-performance
that referenced
this pull request
Sep 15, 2022
…enberg repository. This changeset backports changes from the following Gutenberg pull requests: - [WordPress/gutenberg#43590 gutenberg#43590] Add a filter to `build_query_vars_from_query_block` - [WordPress/gutenberg#40933 gutenberg#40933] Block Library - Query Loop: Add parents filter Props ntsekouras, bernhard-reiter. See #56467. Built from https://develop.svn.wordpress.org/trunk@54175 git-svn-id: https://core.svn.wordpress.org/trunk@53734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
whereiscodedude
pushed a commit
to whereiscodedude/wpss
that referenced
this pull request
Sep 18, 2022
…enberg repository. This changeset backports changes from the following Gutenberg pull requests: - [WordPress/gutenberg#43590 gutenberg#43590] Add a filter to `build_query_vars_from_query_block` - [WordPress/gutenberg#40933 gutenberg#40933] Block Library - Query Loop: Add parents filter Props ntsekouras, bernhard-reiter. See #56467. Built from https://develop.svn.wordpress.org/trunk@54175
20 tasks
38 tasks
ootwch
pushed a commit
to ootwch/wordpress-develop
that referenced
this pull request
Nov 4, 2022
…enberg repository. This changeset backports changes from the following Gutenberg pull requests: - [WordPress/gutenberg#43590 gutenberg#43590] Add a filter to `build_query_vars_from_query_block` - [WordPress/gutenberg#40933 gutenberg#40933] Block Library - Query Loop: Add parents filter Props ntsekouras, bernhard-reiter. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54175 602fd350-edb4-49c9-b593-d223f7449a82
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
Needs Dev Note
Requires a developer note for a major WordPress release cycle
Needs User Documentation
Needs new user documentation
[Package] Block library
/packages/block-library
[Type] Enhancement
A suggestion for improvement.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Resolves: #34033
Part of: #24934
This PR adds
parent
filtering support in Query Loop with a new property in existingquery
attribute, calledparents
. The filter is only shown forhierarchical
post types and if you have selected multiple parents it will display the children of all of them(union).How?
Testing Instructions
hierarchical
post type, likePage
.Parents
control and start typing there to see suggestions.Query Loop
blocks.Screenshots or screencast
Screen.Recording.2022-05-09.at.2.46.20.PM.mov