I'm trying to add infinite scrolling to a custom page i've created on my WP install but it's not working. The message saying that the posts are being fetched appears, but then it says i've reached the end and no posts appear.
I've tested this on the homepage and it's working. Could it be because i'm using a custom query on this page? The query is:
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$args = array(
'v_sortby' => 'views',
'v_orderby' => 'desc',
'post_type' => 'jogos',
'paged' => $paged
);
query_posts($args);
Any help regarding this problem is appreciated, Thank you!
Update: i've enabled Debug and got this from chrome's console:
["heading into ajax", Array[2] ] jquery.infinitescroll.js:121["Using HTML via .load() method"] jquery.infinitescroll.js:121["Error", "end"] jquery.infinitescroll.js:121["Binding", "unbind"].
The difference between the other page is that the "Error", "end" doesn't appear but instead the "contentSelector"
["heading into ajax", Array[2] ] jquery.infinitescroll.js:121["Using HTML via .load() method"] jquery.infinitescroll.js:121["Error", "end"] jquery.infinitescroll.js:121["Binding", "unbind"].