WordPress.org

Ready to get started?Download WordPress

Forums

infinite scroll problem with attachment post type (1 post)

  1. deedodede
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic