-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Labels
[Block] Query LoopAffects the Query Loop BlockAffects the Query Loop Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
What problem does this address?
I think it is a very common practice to add query loops in the bottom of a single template to show ‘other/related posts’. This is currently not possible with the block.
What is your proposed solution?
In the classic approach, we could use the query argument to remove the current postID (with get_the_id) (I used this as a default for all queries).
This works because we very rarely have cases where the post(-type) or page query should include itself in the loop (correct me if I’m wrong).
Can we do this for the query-loop block? It would enable ‘related posts’ lists under any page, while omitting the post currently on screen. Without having to add another filter arg in the block settings.
chrisgresh, mikezielonka, splitdev-backend, sxxov and tyrann0usbbertucc
Metadata
Metadata
Assignees
Labels
[Block] Query LoopAffects the Query Loop BlockAffects the Query Loop Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Projects
Status
🦵 Punted to 6.9