Browse files

Order by 'meta_value_num' instead of 'meta_value'.

  • Loading branch information...
1 parent 6b75b39 commit 98e4898fd47d8c20d41611128da25a9a91d935f0 @justintadlock committed Aug 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 page-template-popular.php
View
2 page-template-popular.php
@@ -20,7 +20,7 @@
<?php get_template_part( 'loop-meta' ); // Get the loop meta box ?>
- <?php $wp_query = new WP_Query( array( 'ignore_sticky_posts' => true, 'meta_key' => 'Views', 'orderby' => 'meta_value', 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1 ) ) ); ?>
+ <?php $wp_query = new WP_Query( array( 'ignore_sticky_posts' => true, 'meta_key' => 'Views', 'orderby' => 'meta_value_num', 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1 ) ) ); ?>
<?php if ( $wp_query->have_posts() ) : ?>

0 comments on commit 98e4898

Please sign in to comment.