You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to properly extend the Query Loop block and allow further use-cases (such as special queries required to display custom post types and the attributes that extensions might add), we need a way to hook into the query object read by the children of the Query Loop block, to manipulate.
What is your proposed solution?
Adding a custom filter to build_query_vars_from_query_block should be sufficient. This function is used to construct the actual $query from the Query Loop block attributes and is the method currently used for all the Query Loop block children.
Meta
Story points: 2 COU: 3
The text was updated successfully, but these errors were encountered:
What problem does this address?
In order to properly extend the Query Loop block and allow further use-cases (such as special queries required to display custom post types and the attributes that extensions might add), we need a way to hook into the query object read by the children of the Query Loop block, to manipulate.
What is your proposed solution?
Adding a custom filter to
build_query_vars_from_query_block
should be sufficient. This function is used to construct the actual$query
from the Query Loop block attributes and is the method currently used for all the Query Loop block children.Meta
Story points: 2
COU: 3
The text was updated successfully, but these errors were encountered: