Under what circumstances would you, (should you?) use a foreach loop, instead of the wordpress loop.
I have no real coding need, but I'm curious. What's good practice here?
Should I:
$args=array(
'post_parent' => $pos_id,
);
$sublabels=get_posts($args);
foreach($sublabels as $sublabel) { // blabla something to do foreach}
Or:
query_posts(array(
'post_parent' => $pos_id,
'cat' => 'label',
));
while (have_posts()) : the_post() ?> // and then the blabla something for each
And why?
