Support » Plugin: Jetpack by WordPress.com » jetpack infinite scroll & ajax loaded page

  • I am using “jquery mobile” with my wordpress theme…
    jQuery mobile uses ajax to load pages…
    So when a page loads with ajax i can see only 7 posts (default number from setting) and the jetpack infinite scroll does not work…

    The loop:

    // the main div that jquery mobile loads with ajax
    <div data-role="page" data-title="Info" class="jqm-demos">
    <div role="main" class="ui-content jqm-content jqm-fullwidth" id="themain">
    <ul data-role="listview" data-inset="true" id="themata-main">
    // the wordpress loop
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<?php get_template_part( 'content', get_post_format() ); ?>
    		<?php endwhile; ?>
    	<?php endif; ?>
    </ul>
    </div>

    funtions.php:

    add_theme_support( 'infinite-scroll', array(
        'type'           => 'scroll',
        'footer_widgets' => false,
        'container'      => 'themata-main',
        'footer'         => false,
        'wrapper'        => false,
        'render'         => false,
        'posts_per_page' => '7',
    ) );

    any ideas to get this work?

    https://wordpress.org/plugins/jetpack/

Viewing 1 replies (of 1 total)
  • Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    Can you let me know what site you’re having this problem? Once I have that information, I’ll be better able to help.

    If you want it to remain private, you can also contact us via this contact form:
    http://jetpack.me/contact-support/

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘jetpack infinite scroll & ajax loaded page’ is closed to new replies.