Grid Avoid Doublets
Prevents the same post from showing up twice when several Grid boxes list posts on one page.
Install in
Pages built with the Grid plugin often contain several boxes that list recent posts. Without coordination, the same post can appear in more than one of these boxes. This plugin keeps track of the posts that have already been placed while a grid renders and removes them from the queries of the post list boxes that follow.
Themes and custom grid boxes can use the same API to register and check their own posts:
grid_avoid_doublets_add( $post_id, $area_id )marks a post as placed.grid_avoid_doublets_is_placed( $post_id, $area_id )checks whether a post has already been placed.grid_avoid_doublets_get_placed( $area_id )returns the IDs of all placed posts.
Written by Joobi from the project's own listing. See the source page
2.0.0
⚠ BREAKING CHANGES
* requires PHP 8.0 or newer
Features
* declare Grid as a required plugin (bebc147)
* declare Grid as a required plugin (baaf624)
* drop support for PHP 7 (9719883)
Bug Fixes
* prevent plugin file from being called directly (f2b4a90)
1.1.2
- use grid hook for modifying posts list box query args
1.1.1
- Not avoiding doublets fix
1.1
- Compatible to Grid Update 1.6.12
1.0
- first release
Follow this listing's changes (Atom feed)