Jetpack Infinite Scroll Polylang
-
Hi
I’ve installed Infinite Scroll on a custom theme. Code below. But the behavior is the same on all the wordpress standard themes:
Infinite scroll only loads the title of the last post over and over. There is no user and no text content (except the title).
So where should I look for the problem? I guess it’s a problem with Polylang (1.6.5)? It’s the only plugin I can’t deactivate.
Here’s the code:
/* function for custom rendering with my theme */ function oz_infinite_scroll_render() { get_template_part( 'contentoz', 'single' ); } /* settings ... */ add_theme_support( 'infinite-scroll', array( 'container' => 'oz-layout', 'render' => 'oz_infinite_scroll_render', 'footer_widgets' => false, 'footer' => false, 'posts_per_page' => 5, 'type' => 'scroll', 'wrapper' => true )); /* filter for loading only the posts of current language. If I delete this, the problem stays the same, just in another language */ if (function_exists('pll_current_language')) { add_filter('infinite_scroll_ajax_url', create_function('$url', "return add_query_arg(array('lang' => pll_current_language()), \$url);")); }
Thanks very much for your help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Jetpack Infinite Scroll Polylang’ is closed to new replies.