Using Woo Canvas and probably all woo themes with their custom framework, you will run into strange things from time to time.. If you try to use pre_get_posts to filter the query of posts in the blog homepage, you find that it doesnt work. So here is a way I found to do it:
// Exclude categories on the "Blog" page template.
add_filter( 'woo_blog_template_query_args', 'change_posts_per_page', 10 );
function change_posts_per_page( $args ) {
global $woo_options;
if ( isset($woo_options['woo_posts_limit']) && !empty($woo_options['woo_posts_limit']) ){
$args['posts_per_page'] = $woo_options['woo_posts_limit'];
}
print_r(''); print_r($args); print_r('
');
return $args;
} // End woo_exclude_categories_blogtemplate()

