misterbisson/bcms — pull request #35 by borkweb (2013-09-10 13:58:06+00:00)
Title: Fixing another related-to bug

__Goal:__

Widget A "shows" 2 posts but only displays 1. Widget B "shows" 2 posts that don't appear in Widget A.

__Problem:__

Widget A doesn't track any posts after it displays its 1 post. Widget B then shows the second post retrieved by A.

__Solution:__

Move the logic that tracks post ids up a bit higher in the loop that iterates over posts that are "shown" so you track them even if they aren't displayed.