Title: Plugin doesn&#039;t work on easy custom template
Last modified: August 21, 2016

---

# Plugin doesn't work on easy custom template

 *  [JanKopietz](https://wordpress.org/support/users/jankopietz/)
 * (@jankopietz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-easy-custom-template/)
 * Hi there.
 * I wrote a custom theme (on the base of twentythirteen) with paged posts on the
   front-page. For a post I just show an image: [http://www.markenloft.de/WordPress/](http://www.markenloft.de/WordPress/)
 * The post loop:
 *     ```
       <div id="wrapper_posts">
            <?php
                 $temp = $wp_query;
                 $wp_query = null;
                 $wp_query = new WP_Query();
                 $wp_query->query('orderby=rand'.'&paged='.$paged); 
   
                 while ($wp_query->have_posts()) : $wp_query->the_post();
            ?>
            <a class="post fancybox fancybox.iframe" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
            <?php endwhile; ?>
            <div class="navigation">
                 <?php next_posts_link('<em>Ältere Beiträge</em>') ?>
            </div>
   
            <?php
                 $wp_query = null;
                 $wp_query = $temp;  // Reset
            ?>
        </div>
       ```
   
 * So I wanted to show some posts first and get the infinite scroll functionality
   when the user reaches the bottom of the page. But no matter if I use the wordpress
   or jquery plugin, I can’t get it work. My plugin settings are:
 * _Content Selector: #wrapper\_posts
    Navigation Selector: .navigation Next Selector:.
   navigation a Item Selector: #wrapper\_posts a.post
 * Any thoughts?
 * Thanks in advance.
 * [http://wordpress.org/plugins/infinite-scroll/](http://wordpress.org/plugins/infinite-scroll/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [JanKopietz](https://wordpress.org/support/users/jankopietz/)
 * (@jankopietz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-easy-custom-template/#post-4377361)
 *  Thread Starter [JanKopietz](https://wordpress.org/support/users/jankopietz/)
 * (@jankopietz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-easy-custom-template/#post-4377365)
 * Solved the problem.
 * My body had a css overflow: hidden; style.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin doesn't work on easy custom template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [JanKopietz](https://wordpress.org/support/users/jankopietz/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-easy-custom-template/#post-4377365)
 * Status: not resolved