Show posts with query_posts using a meta_key & ordered using another meta_key
-
Hi,
I’m trying to show posts with
query_posts();
using ameta_key
and then order the posts shown by anothermeta_key
. It’s not working because if I put themeta_key
for displaying,query_posts()
use it to order and if I put themeta_key
,query_posts()
order correctly but all post that have a order(They all have one!)Look like this:
$args = array( 'meta_key' => 'myPosts_displayed', 'meta_key' => 'myPosts_order', 'orderby' => 'meta_value_num', 'order' => 'ASC' ); query_posts( $args );
Thanks
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Show posts with query_posts using a meta_key & ordered using another meta_key’ is closed to new replies.