I am using the following code to display the subpages pages of a parent page with id 67 , although it should return 3 pages but it is returning only two pages .
<?php
$mypages = get_pages( array(
'child_of' => 67,
'sort_column' => 'post_modified',
'sort_order' => 'desc',
'number'=>3
) );
echo count($mypages);
?>
But when i don’t use the argument ‘number’=3, then everything is fine and it returns 3 pages. What is it that i am doing wrong.
Please help me
try this one and check what your are getting.