jshultz
Forum Replies Created
-
here’s the db query it’s using to generate the posts:
static function posts_clauses( $bits, $wp_query ) {
global $wpdb;$direction = $wp_query->get( ‘smarter_navigation’ );
if ( !$direction )
return $bits;$orderby = preg_split( ‘|\s+|’, $bits[‘orderby’] );
$orderby = reset( $orderby );$field = explode( ‘.’, $orderby );
$field = end( $field );$post = get_queried_object();
if ( isset( $post->$field ) ) {
$bits[‘where’] .= $wpdb->prepare( ” AND $orderby $direction %s “, $post->$field );
$bits[‘limits’] = ‘LIMIT 1’;
} else {
$bits[‘where’] = ‘ AND 1 = 0’;
}return $bits;
}The name of the column that is storing the menu order is: menu_order. So, the posts are created and then using drag/drop within the wp admin you can set the order in how they will appear in the category. So, the posts are appearing the category based on how they are sorted in wp admin.
So what is happening is the posts are ordered in wp-admin. Simple Page Ordering is displaying the posts in order based upon the order of the posts using the field menu_order in the wp_post table.
Forum: Plugins
In reply to: Blog Stats’ Top Posts not showing properlyIs there a solution for this problem yet? I’ve noticed one of my blogs hasn’t been recording stats since 08-2008! Google Analytics, of course, is running great.
Forum: Fixing WordPress
In reply to: Blog Stats Not ShowingIs there a solution for this problem yet? I’ve noticed one of my blogs hasn’t been recording stats since 08-2008! Google Analytics, of course, is running great.