Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ExoGenesis

    (@exogenesis)

    Hi Glenn

    I have now updated the plugin but the infinite scroll still isn’t working.

    Perhaps I am not using a custom post type. The ‘maps’ and ‘recently added’ pages are made using a page template which queries the loop

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args = array(
    	'category_name' => 'maps',
    	'posts_per_page' => 20,
    	'paged' => $paged,
    	'gdsr_sort' => rating,
    	'sort_order' => desc,
    );
    
    query_posts($args);
    ?>

    and then includes the loop

    <?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php
    						/* Include the Post-Format-specific template for the content.
    						 * If you want to overload this in a child theme then include a file
    						 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    						 */
    						get_template_part( 'content-map', get_post_format() );
    					?>
    
    				<?php endwhile; ?>
    
    				<?php echo paginate_links( $args ) ?>
    
    				<?php toolbox_content_nav( 'nav-below' ); ?>

    As you can see it uses a Post-Format-specific template.

    I’m not sure what the problem is here though because it worked before by including

    function my_load_infinite_scroll( $load_infinite_scroll ) {
        if( is_page( array('maps','recently-added')) )
            return true;
        return $load_infinite_scroll;
    }
    
    add_filter('infinite_scroll_load_override', 'my_load_infinite_scroll');

    in functions.php. It works on the other pages (such as search) but not on maps or recently added.

    Any ideas where I am going wrong? I think I will have to go back to the older version of the plugin at this rate.

    EDIT

    Look like it is a problem with loading it on page templates, others seem to be having the same issue ??

    Thread Starter ExoGenesis

    (@exogenesis)

    Fixed it myself.

    disappointed in the lack of help that I have had from this forum the last few times I have posted here.

    Forum: Plugins
    In reply to: Javascript Issues
    Thread Starter ExoGenesis

    (@exogenesis)

    I would appreciate some help

    Forum: Plugins
    In reply to: Javascript Issues
    Thread Starter ExoGenesis

    (@exogenesis)

    Am I allowed to bump a topic after 5 hours of no replies?

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