• query post not showing all post.

    my code is

    $args = array(
    ‘post_type’ => ‘global’,
    ‘posts_per_page’ => 100,
    ‘orderby’ => ‘title’,
    ‘order’ => ‘ASC’,
    );

    its showing only 96 posts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • what is the full code of the template?
    (please use the pastebin – http://codex.wordpress.org/Forum_Welcome#Posting_Code )

    can you post a link to your site to illustrate the problem?

    Thread Starter rahulword9895

    (@rahulword9895)

    if the problem is with:

    $args=array(
      'post_type' =>'global',
      'post_status' => 'publish',
      'posts_per_page' => 114,
    
      );
    
    $my_query = null;
    $my_query = new WP_Query($args);
    //Query all prams

    after these lines, try to temporarily add a control output to show the post’s number in the loop:

    echo 'post number '. $my_query->current_post . '<br />';

    see if that outputs all posts according to your $args.

    or double check all the conditionals within your code.

    Thread Starter rahulword9895

    (@rahulword9895)

    hi,

    It will return ‘No Results Found’!. When we give ‘posts_per_page’ more than 114 it also return ‘No Results Found’!. and having total 125 posts,now its taking only first 114 posts.Any solution for this?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘querypost not showing all post’ is closed to new replies.