-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
[Block] Query LoopAffects the Query Loop BlockAffects the Query Loop Block[Block] Query PaginationAffects the Query Pagination Block - used for pagination within the Query Loop BlockAffects the Query Pagination Block - used for pagination within the Query Loop Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
This is a standard Query Loop block in the TT5 theme. We still show the Query Pagination Previous block whenever a user navigates to a page outside the query's range. However, as there are no results, the block does not make much sense to be shown.
Step-by-step reproduction instructions
- Add a Query Loop block to a page or post.
- Make sure that the Post Template block of the Query Loop includes a Pagination Previous block.
- Save your post/page.
- Open your post/page on the frontend.
- Navigate to a page that is outside of the range of the query. e.g.:
http://example.com&query-5-page=99999999 - Note that the Previous button is visible and it works but it does not make sense to show it in this context.
Screenshots, screen recording, code snippet
Screen.Recording.2024-12-05.at.13.47.07.mov
Environment info
- 6.8-alpha-59477
- TT5 theme
- Chrome
- Gutenberg
trunk
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] Query LoopAffects the Query Loop BlockAffects the Query Loop Block[Block] Query PaginationAffects the Query Pagination Block - used for pagination within the Query Loop BlockAffects the Query Pagination Block - used for pagination within the Query Loop Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for Bug.