dcooney on "[Plugin: Ajax Load More - Infinite Scroll] Infinite scrolling only loads repeater once then goes to click"

ساخت وبلاگ

openbayou
Member
Posted 56 minutes ago #

Hello,
I have a custom theme where the plugin somewhat works. The shortcode is the default and it's suppose to be infinite scrolling. The repeater loads once and then it goes to click mode.

You can see what I'm talking about here: http://openbayou.photobayou.net/

I tried loading this on 2016 default theme and it works so I know it's my theme. Is there any documentation on what to do to get AJAX load more to work on a custom theme?

Thanks,
Gregory S.

https://wordpress.org/plugins/ajax-load-more/

openbayou
Member
Posted 23 minutes ago #

Here's the loop:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', get_post_format() ); // End the loop. endwhile; echo do_shortcode('[ajax_load_more post_type="post" posts_per_page="20" offset="20"]'); endif;?>

Hey Greg,
THe problem on your page is the scroll_distance="150"... Because your site has not footer, the button never makes it 150px from the bottom.

Set scroll_distance="10" and it should work for you!

Cheers,

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 240 تاريخ : يکشنبه 26 ارديبهشت 1395 ساعت: 9:17