I have a custom loop pulling out videos all assigned to various categories. However there is a category called "new-video" and I need to pull out all videos using my custom loop, but I would like the posts assigned to the category "new-video" to be shown first.
So basically the loop will treat the category "new-video" as of high priority and then show the other videos afterwards. I know you can include and exclude categories, but I don't want to exclude anything, merely prioritise.
With Wordpress 3.1 *meta_query* was introduced which allows for some pretty customisable queries, but the documentation is sparse and all of my searches thus far have returned nothing I can use.
The code I am currently using is the below if it helps:
$videos = get_posts(array( 'post_type' => 'videos', 'nopaging' => true, 'each_connected' => array( 'post_type' => 'artists', 'nopaging' => true, ), 'suppress_filters' => false ));
Ignore the each_connected stuff, that is there because I am using the plugin Posts to Posts by Scribu.