-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio_three_column.php
executable file
·42 lines (40 loc) · 1.5 KB
/
portfolio_three_column.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
Template Name: Portfolio Three Col
*/
?>
<?php get_header(); ?>
<div id="headerbottom">
<div id="inheaderbottom">
<div id="hbleft">
<h2><?php the_title(); ?></h2>
</div>
<div id="hbright">
<img src="<?php echo get_template_directory_uri(); ?>/images/search.png" />
</div><div class="clear"></div>
</div>
</div>
<div id="homecontent2">
<ul class="threeportfolio">
<?php
global $wp_query;
query_posts( array('post_type' => array( 'portfolio' ),'showposts' => 12, 'paged'=>$paged )
);
if (have_posts()) : while (have_posts()) : the_post();
?>
<li>
<h5><?php the_title(); ?></h5>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<a href="<?php echo get_permalink() ?>" title="<?php the_title(); ?>"><img class="border hover" src="<?php echo get_template_directory_uri(); ?>/thumb.php?src=<?php echo $image[0]; ?>&h=125&w=270&q=100" height="125" width="270" /></a><br />
<?php the_excerpt(); ?><div class="sep2"></div><br /><br />
</li>
<?php endwhile; ?>
<?php else: ?>
<p><?php _e("Sorry, no posts matched your criteria.","arclite"); ?></p>
<?php endif; ?><div class="clear"></div>
<div class="navigation">
<div class="alignleft"><?php posts_nav_link( '$sep', $prelabel, $nextlabel ); ?></div>
</div>
</ul>
</div>
<?php get_footer(); ?>