Open jessk4code opened 2 years ago
I was able to come up with a solution and posted it on WordPress Stackexchange.
@desandro @ryanza @Dachande663 @DrorCohenCC Bad news... $container.data('infniteScroll');
does not work on v3 or v4. I was able to retrieve data with isotope $container.data('isotope');
but not with infiniteScroll.
I am trying to use Isotope and Infinite Scroll in an Ajax call.
I applied somewhat of the answer from these issues: https://github.com/metafizzy/isotope/issues/1481 https://github.com/metafizzy/isotope/issues/1045
I understand about using appended to add the new items to the Isotope instance. As @desandro explained, but... it still does not work with how I implemented it.
FYI: In my StackExchange answer, the attempted solution below is not featured.
Here is the full code:
Test case: https://bit.ly/3JNz6FI Full Issue on WordPress Stack Exchange: https://wordpress.stackexchange.com/questions/402963/wordpress-search-ajax-isotope-infinitescroll