Listing posts by a pre-filled Array !
-
Servus,
I need to accomplish something like this:
for ( $i = 0; $i < $darray['max']; $i++ ) { $list=$darray[$i]['pID']; array_push($stack,$list); } $args= array('p=' => $stack); $temp_query = new WP_Query($args); while ($temp_query->have_posts()) : $temp_query->the_post();
This will work with pages using the codex mentioned posts__in, but how can I solve this with straight post IDs ?
Thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Listing posts by a pre-filled Array !’ is closed to new replies.