WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
Posts problem - repeating same posts (4 posts)

  1. agam360
    Member
    Posted 2 years ago #

    I have a slider which shows the following:

    query_posts('posts_per_page=5');

    and then the body shows the following:

    query_posts('posts_per_page=5&offset=5');

    When I hit the infinite scroll it shows me the same 5 posts a few times, and then stops.
    What is the problem?

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

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    try to work with the 'paged' parameter isntead of 'offset';

    example:

    query_posts('posts_per_page=5&paged='.get_query_var('paged'));
  3. agam360
    Member
    Posted 2 years ago #

    @alchymyth, I have tried:

    query_posts('posts_per_page=5&offset=5&paged='.get_query_var('paged'));
    if (have_posts()) : while (have_posts()) : the_post();

    See it here:
    http://gamersfleet.com/ - press the next page link

  4. Uitvaartverzekeringen
    Member
    Posted 2 years ago #

    Did some one have experience with the plugin push bottum SEO

    Regards,

    Clife Hiwat

    http://www.begrafeniskosten.net

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic