Posted By

javifr on 10/29/10


Tagged

wordpress query


Versions (?)

Query posts - order by meta key value


 / Published in: PHP
 

  1. global $wp_query;
  2. $wp_query = new WP_Query('post_type=event&post_status=publish&posts_per_page=5&meta_key=date_value&orderby=meta_value&meta_compare=>=&meta_value='.time().'&order=ASC&paged='.$paged);
  3.  

Report this snippet  

You need to login to post a comment.