Hi All,
So I’m stuck - I’ve trawled through the codex and tried different variations of google searches but I’ve had no luck.
Basically I’ve got a custom meta box on pages that allows me to feature the content on the front page. It has a tick box and an order field. What I’m trying to do is update the query on the front page to take acount of the order field. At the moment I’m just pulling back posts that have the existing meta key “_my_meta” (code below).
What I want to do is pull back posts that have the meta key “_my_meta”, the meta value “featured” and order them by the meta value “order” (both featured and order are stored in an array in _my_meta). Can anyone help?
$args = array(
'post_type' => array( 'post', 'page', 'news', 'llc_events' ),
'meta_key' => '_my_meta',
'orderby' => 'title',
'order' => 'ASC'
);
// The Query
query_posts( $args );
Cheers,
Richard.