Hey guys,
I have custom post type posts displaying in a section on my homepage (as cards in a custom 2 col layout). I solved that by using a hook with a wp_query, querying them all and then inserting it on the page with generate_before_main_content hook. I would like to enable infinite scroll for these because the amount of posts will most probably vary quite some.
This is the simple query I’m using:
<?php
$homepageAdvisors = new WP_Query(array(
'posts_per_page' => -1,
'post_type' => 'radgivare'
));
?>
Please tell me there is a simple way of making this work? ๐
Thanks!