• Hi all,
    I have a page products.
    My code to display products:

    <?php $args = array(
    ‘post_type’=> ‘my_post_type’,
    ‘post_per_page’ => 6
    );
    query_posts($args);

    if (have_posts()): while ($wp_query->have_posts()) : the_post(); ?>
    MY_HTML_PRODUCT
    <?php endwhile; endif; wp_reset_postdata(); ?>

    I want to show 6 products when start pages. When I scroll mouse to bottom will load more 3 products.
    How to do it? Please help me. Thanks you.

  • The topic ‘Lazyload in wordpress’ is closed to new replies.