• Resolved jwburnside

    (@jwburnside)


    Hey everyone, I seem to be having a problem with the results of my query_posts results. I am simply putting the results in an array, but only 10 of my 14 posts seem to be coming through, with the older posts being ignored. Anyone seen this before, or am I doing something wrong? Here is the important portion:

    <?php query_posts(“cat=7”); ?>
    <?php while (have_posts()) : the_post(); ?>

    <?php //put the post data into an array
    $customField = get_post_custom_values(‘Front Page Image’);
    $postarray[$postkey] = array(
    “title” => get_the_title(),
    “perm” => get_permalink(),
    “frontimage” => $customField[0],
    “excerpt” => get_the_excerpt());
    echo “<span style=’position:absolute;color:white;’> ” . count($postarray) . ” </span>”;
    ?>

    The echo displays the element count of the array, but like I mentioned it only goes to 10 for some reason.

    Thanks for the help,

    JW

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

The topic ‘query_posts not returning all posts’ is closed to new replies.