Support » Fixing WordPress » infinite scroll problem with attachment post type

  • Hi everybody
    I would show in the loop the attachment (images) as post with infinite scroll jquery paginations.

    my loop code is:

    $args = array(
     'post_type' => 'attachment',
     'post_status' => 'published',
     'cat' => '-' . $category_ID,
     'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1)
      );
     query_posts($args);
        while (have_posts()) : the_post(); ?>

    [Please post code between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    this works only if the number of attachment published is minor of the published articles the pagination doesn’t work. Why?

  • The topic ‘infinite scroll problem with attachment post type’ is closed to new replies.