WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
[Plugin: Infinite Scroll] Problem : Personnal Template nothing about selector (2 posts)

  1. guillaumebcher
    Member
    Posted 2 years ago #

    Hi everybody,

    I would like to use infinite plugin in my wordpress template but unfortunatly is not working. I'm sure that is no problem with my selector see my code below :

    <?php get_header(); ?>
    	<div id="content" role="main">
    
    			<?php if ( have_posts() ) : ?>
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    						<div class="post">
    						<?php
    						$image_id = get_post_thumbnail_id();
    						$image_url = wp_get_attachment_image_src($image_id,’large’, true);
    						echo '<span class="attach-post-image" style="height:300px;display:block;background:url(' . $image_url[0] . ') center center repeat"></span> >';
    						?>
    						</div><!-- .post -->
    
    				<?php endwhile; ?>
    			<?php endif; ?>
    
    <?php if (  $wp_query->max_num_pages > 1 ) : ?>
    				<div id="nav-below" class="navigation">
    					<?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?>
    				</div><!-- #nav-below -->
    <?php endif; ?>
    
    			</div><!-- #content -->
    
    <?php get_footer(); ?>

    Here my settings :

    Content CSS Selector: #content
    Post CSS Selector: #content div.post

    Navigation Links CSS Selector: div.navigation
    Previous posts CSS Selector: a:first

    I don't have this problem when I switch to twentyten template.

    I'm creating my theme offline, and I started my theme through the twentyeleven theme. When I want to use the console in firebug nothing displaying, no errors. When I'm looking in the code source no .js is imported from the pluggin but when is twentyten yes it is.

    Is somebody by any chance know why is not working in my theme and why the pluggin not working in safari?

    pleeaase help

    Thanks
    Guillaume

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    You'll need to change Previous posts CSS Selector to something like:
    Previous posts CSS Selector: div.navigation a:first

    Let me know if that helps at all (do you have debug on?)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic