I have a View displaying the first 6 items but am also using infinite scrolling and a "load more" button that displays up to 6 more items on each click of button. If there are 6 or less the button is hidden. This is working well:
However, once all the items are loaded, the "load more" button remains at the bottom - but does nothing.
I need help modifying the above condition so that:
- if there are 6 items or less the button is hidden;
- if there are items not yet displayed on the page (i.e. more than 6), the button is shown;
- if all the items are shown the button is hidden.
or put more simply: if there are any items not being displayed, the button is shown, else it is hidden.
Ok - I checked and found that pagination shortcodes are not hooked in when infinite scroll is fired using the "Load more" button which is setup using [wpv-pager-next-page] shortcode.
We already added this as a feature request and "Load more" button feature is set to be added to Views version 3.1 which should be out in near future. Please note that there is no ETA on it.