Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Web Portfolio
- */
- ?>
- <?php get_header(); ?>
- <div class="wrap">
- <div id="equal-columns-wrap">
- <!-- ||||SIDEBAR|||| -->
- <div id="sidebar">
- <div id="sidebar-border">
- <?php include (TEMPLATEPATH . '/portfolio-sidebar.php'); ?>
- </div>
- </div>
- <!-- ||||SIDEBAR|||| -->
- <!-- ||||CONTENT|||| -->
- <div id="content">
- <h2 id="web-header">Web & Interactive</h2>
- <h3 id="web-h3" class="darkblue">A Few Samples of Our Work</h3>
- <!-- begin portfolio -->
- <div id="portfolio">
- <?php $loop = new WP_Query( array( 'post_type' => 'web', 'posts_per_page' => 6 ) ); ?>
- <?php if ( $loop->have_posts() ) : ?>
- <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
- <div class="portfolio-item">
- <div class="portfolio-thumb"><a href="<?php the_permalink() ?>" rel="bookmark" title="Portfolio item: <?php the_title_attribute(); ?>"><?php the_post_thumbnail('portfolio-thumb'); ?></a></div>
- <h4 class="portfolio-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Portfolio item: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
- </div>
- <?php endwhile; ?>
- <?php wp_pagenavi( array( 'query' => $loop ) ); ?>
- <?php wp_reset_postdata(); // reset the query ?>
- <?php endif; ?>
- <div class="clear"></div>
- </div><!-- end portfolio -->
- </div><!-- ||||CONTENT|||| -->
- </div><!-- closed equal-columns-wrap div -->
- </div><!-- end the content wrap -->
- <div class="clear"></div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment