• Resolved slamsal

    (@slamsal)


    Firstly, I like your plugin but I’m having a problem on loading new post right below another post. It does everything perfectly, except it loads too many posts without even scrolling, it keeps getting triggered and loads, new post and new post and new post without stopping and the scrollbar size become almost 1milimeter (lol). Any idea what is going wrong here? Also, I am using ajax site, so I would like to know how to reinitialise this plugin so that both works fine.
    This is my content-partial.php:

    <?php ?>
    
      <article class="content">
    <div class="popupcontentarea">
    
    <div class="titlecenter">
    <?php the_title( '<h1 class="titleiframe">', '</h1>' ); ?> 
    </div>
    
    <div class="barhold"> </div>
    
    <div id="idcaf" class="contentAreaiframe">
    
    <div class="ptinfo"> <span class="ptsrc"> 
    
    <?php
    global $post;
    $author_id=$post->post_author;
    ?>
    
    <?php the_author_meta( 'display_name', $author_id );
    ?>
    
     </span> <span class="pttime"><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?></span></div>
    
    <div class="ad_bl" style="float:left; width:100%; height:100%"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
    
    </script>
    <!-- Responsive Imge -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-8541239924554762"
         data-ad-slot="4037379521"
         data-ad-format="auto"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script></div>
    
              <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
          
    
    <?php echo apply_filters('the_content', get_post_field('post_content', $post_id)); ?>
    
              </article><!-- #post-## -->
    
    <div class="externalmain">
    
    <div class="linkinim"> 
    <a ref="ilightbox" 
    href=" 
    <?php echo get_cuurent_post_meta('_wpcc_post_url'.$userID);
     ?>" target="_blank"><span class="emmoretext">Read More on <?php the_author(); ?></span></a>
    </div>
    
    </div>
    
            <div class="tpita"> In the news </div> 
    
        <?php echo custom_taxonomies_terms_links();?>
    
    </div>
    
     
    
    </article>
    
    <nav class="navigation_infinite_post">
      
    <?php
        previous_post_link('<span class="left">&laquo; %link</span>');
    
    ?>   
    
    </nav>
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Post loads too fast automatically’ is closed to new replies.