I am using the query_posts function to list a 10 specific posts which lookup by post id.
I have an array which looks like this..
Array
(
[0] => 17983
[1] => 17932
[2] => 18030
[3] => 18016
[4] => 17972
[5] => 18013
[6] => 18035
[7] => 17959
[8] => 18020
[9] => 18039
)
I would like to query posts showing it in that specific order, however with my code it shows them in a random order of its own.
Here is the argument I use for query posts:
$args = array(
'post_type' => 'post',
'post__in' => $post_ids,
'numberposts' => 10,
);
$post_ids is the array which I have posted above.
How can I alter my code to query the posts and show them in the order of the array?