title: Using Tumblr Like Button with Infinite Scroll
body: <p>I'm trying to use the new Tumblr like buttons within Infinite Scroll (allowing your theme a like button on individual Tumblr posts from the homepage) they work for the first 15 posts of the first 'page' but then as soon as it loads another page the like button stops working. These are the instructions given from Tumblr on the Docs page:</p>
  
  <blockquote>
    <p>Function: Tumblr.LikeButton.get_status_by_page(n) <br>
    Description: Call this function after requesting a new page of Posts. Takes the page
    number that was just loaded as an integer.</p>
    
    <p>Function: Tumblr.LikeButton.get_status_by_post_ids([n,n,n]) <br>
    Description: Request Like status for individual posts. Takes an array of post IDs.</p>
  </blockquote>
  
  <p>As I'm not sure how to properly apply JQuery I'm not sure where to add these functions, here is my JS for my current theme:</p>
  
  <pre><code>    // MASONRY
      var $container = $('#content');
  
      $container.imagesLoaded( function(){
          $container.masonry({
              itemSelector: '.entry',
              columnWidth: 220
          });
      });
  
      // INFINITE SCROLL
      $container.infinitescroll({
          navSelector  : '#pagination',
          nextSelector : '#pagination li a.pagination_nextlink',
          itemSelector : '.entry',
          loading: {
              img: 'http://static.tumblr.com/glziqhp/K37m9yaub/257__1_.gif'
          }
      },
  
      function( newElements ) {
          var $newElems = $( newElements ).css({
              opacity: 0
          });
          $newElems.imagesLoaded(function(){
              $newElems.animate({
                  opacity: 1
              });
              $container.masonry(
                  'appended', $newElems, true
              ); 
          });
      });
  </code></pre>