Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $wQuery = new WP_Query(
- array('post_type' => 'post',
- 'posts_per_page' => $how_many,
- 'cat' => '46,43', // categories should be supplied this way (an array doesn't work)
- 'meta_key' => 'post_views' ,
- 'orderby' => 'meta_value_num', // or meta_value (if it's a string)
- 'order' => 'DESC')
- );
- ?>
Add Comment
Please, Sign In to add comment