JetPack Infinite Scroll – error on author page
-
Hi. I am using JetPack infinite scroll. It works fine on my category, archives etc – wherever I have posts.
However it seems to be loading on the author page and I dont want it to. The reason is that on the author page it shows the error notice:
Notice: Trying to get property of non-object in xxxx/wp-content/plugins/jetpack/modules/infinite-scroll/infinity.php on line 375
I add inifinite scroll support via
add_theme_support( ‘infinite-scroll’, array(
‘type’ => ‘scroll’,
‘footer_widgets’ => false,
‘container’ => ‘scrollable’,
‘wrapper’ => true,
‘render’ => false,
‘posts_per_page’ => false,
‘footer’ => ‘colophon’,
) );And on my author page I dont have an id called “scrollable”. So why is it loading inifinite scroll on the author page? How to I get it not to do this?
- The topic ‘JetPack Infinite Scroll – error on author page’ is closed to new replies.