Advertisement
Guest User

Pinboard WordPress Theme, excluding sticky posts

a guest
Feb 1st, 2013
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.75 KB | None | 0 0
  1. <?php get_header(); ?>
  2.     <?php if( is_home() && ! is_paged() ) : ?>
  3.         <?php if( pinboard_get_option( 'slider' ) ) : ?>
  4.             <?php get_template_part( 'slider' ); ?>
  5.         <?php endif; ?>
  6.         <?php get_sidebar( 'wide' ); ?>
  7.         <?php get_sidebar( 'boxes' ); ?>
  8.     <?php elseif( ( is_home() && is_paged() ) || ( ! is_home() && pinboard_get_option( 'location' ) ) ) : ?>
  9.         <?php pinboard_current_location(); ?>
  10.     <?php endif; ?>
  11.     <div id="container">
  12.         <section id="content" <?php pinboard_content_class(); ?>>
  13.             <?php if( is_category( pinboard_get_option( 'portfolio_cat' ) ) || ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>
  14.                 <?php pinboard_category_filter( pinboard_get_option( 'portfolio_cat' ) ); ?>
  15.             <?php endif; ?>
  16.                 <?php
  17.                     global $wp_query;
  18.                     $args = array_merge( $wp_query->query_vars, array( 'post__not_in' => get_option( 'sticky_posts' ) ) );
  19.                     query_posts( $args );
  20.                 ?>
  21.  
  22.             <?php if( have_posts() ) : ?>
  23.                 <div class="entries">
  24.                
  25.                     <?php while( have_posts() ) : the_post(); ?>
  26.                         <?php get_template_part( 'content', get_post_format() );  ?>
  27.                     <?php endwhile; ?>
  28.                      <?php wp_reset_query(); ?>
  29.                 </div><!-- .entries -->
  30.                 <?php pinboard_posts_nav(); ?>
  31.             <?php else : ?>
  32.                 <?php pinboard_404(); ?>
  33.             <?php endif; ?>
  34.         </section><!-- #content -->
  35.         <?php if( 'no-sidebars' != pinboard_get_option( 'layout' ) && 'full-width' != pinboard_get_option( 'layout' ) && ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>
  36.             <?php get_sidebar(); ?>
  37.         <?php endif; ?>
  38.         <div class="clear"></div>
  39.     </div><!-- #container -->
  40. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement