Hi all,
I've got a weird problem with using the query_posts() vs. get_posts() core functions. The thing is that the query_posts() function gives me the desired children of the ID. Like:
query_posts(array(
'post_type' => 'page',
'post_parent' => $optID
));
But...the "post_parent" parameter shouldn't be an optional argument for the query_posts() function... (At least not according to the documentation.)
While the get_posts() with the same arguments returns an empty 'query'.
get_posts(array(
'post_type' => 'page',
'post_parent' => $optID
));
Can anyone tell me what's going on...?
Thanks for your reply!