Posted By

javifr on 10/29/10


Tagged

wordpress query


Versions (?)

Order posts by meta


 / Published in: PHP
 

  1. <?php
  2. // grab posts by post count ordered in descending order (most votes first)
  3. $query = 'meta_key=vote_count&orderby=meta_value&order=DESC';
  4. $queryObject = new WP_Query($query);
  5. // The Loop...
  6. ?>
  7.  

Report this snippet  

You need to login to post a comment.