Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Loop - Shop
- *
- * This is the loop file used on the "Blog" page template.
- *
- * @package WooFramework
- * @subpackage Template
- */
- global $more; $more = 0;
- woo_loop_before();
- // Fix for the WordPress 3.0 "paged" bug.
- $paged = 1;
- if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); }
- if ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); }
- $paged = intval( $paged );
- $query_args = array(
- 'post_type' => 'post',
- 'posts_per_page' => '20',
- 'paged' => $paged
- );
- $query_args = apply_filters( 'woo_blog_template_query_args', $query_args ); // Do not remove. Used to exclude categories from displaying here.
- remove_filter( 'pre_get_posts', 'woo_exclude_categories_homepage', 10 );
- query_posts("cat=16&post_type=post&posts_per_page=10&paged=$paged");
- if ( have_posts() ) { $count = 0;
- ?>
- <div class="fix"></div>
- <?php
- while ( have_posts() ) { the_post(); $count++;
- //woo_get_template_part( 'content', get_post_type() );
- woo_get_template_part( 'content', 'shop' ); // Get the page content template file, contextually.
- } // End WHILE Loop
- } else {
- get_template_part( 'content', 'noposts' );
- } // End IF Statement
- woo_loop_after();
- woo_pagenav();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment