Let me start by thanking anyone out there willing to help with this problem.
I am in development of custom plugin and everything’s going well.
The plugin does it’s job and comes up with a list of posts to display. This list is an array called $provIDlist and it contains a list of post id numbers.
I then use query_posts to display the posts as you can see in the below code. This works beautifully except for the order of things.
$args = array( 'posts_per_page' => 25, 'post__in' => $provIDlist, 'orderby' => none ); echo query_posts($args);
What I want is the posts to display in the order they exist in the array. Right now setting the ‘orderby’ to ‘none’ it actually displays them in ascending order of post_id. So “none” isn’t really no order.
Is there anyway to have the posts display in the order they are queried from the array?
- The topic ‘Creating Custom Plugin: Need help with query_posts’ is closed to new replies.