i have a sitoweb structured in:
{$items}
{$video}
{$other_items}
in $items are printed 12 items, while in $other_items 4 items, discarding the 12 printed before.
$articoli = Articoli::where('is_published', '0')->orderBy('published_at', 'desc')->limit(12)->get();
$articoli_other = Articoli::where('is_published', '0')->where('id', '<', $articoli[11]->id)->orderBy('published_at', 'desc')->paginate('3');
the problem is that the articles are (I reduce the 12 items into five to make reading easier):
item1
item2
item3
item4
item5
VIDEO
item6
item7
item8
when “Other Items” is pressed change the view I:
item1
item2
item3
item4
item5
VIDEO
item6
item7
item8
item1
item2
item3
item9
item10
item11
because when I press “Other articles”, it repeats item 1/2/3 to me and then puts me new ones?
This is the infinite scroll I use, and in other pages it works properly...
https://infiniteajaxscroll.com/