soflyy/breakdance-bugs

Post Loop 'Alternate' displayed incorrectly when used with WP Grid Builder and 'Load More'

Opened this issue · 0 comments

  • BD v2.0
  • WP Grid Buidler v2.1.0

Using WPGB for filtering and 'load more' pagination. When used with a post loop that uses an 'alternate' block to display, e.g. a different format for the first item in the loop, and only the first item, the alternate is displayed every time the 'load more' button is clicked. In this scenario, the alternate should only ever be displayed at the top of the page, not on every click of 'load more'.

  • create 2 global blocks, one for the main posts and one for the first post
  • create a post loop with an 'alternate' set for 'position 1' with no repeat
  • enable WP Grid Builder on the loop
  • add in a facet which is a WPGB 'load more' facet

You can see this behaviour in this video:

https://recordings.webxdesign.studio/recordings/uwCYotM3lxbQQzurC62e