portfolio layout in posts (have code)

Hello,
I’m new to this forum and want to thank anyone in advance for any help you could give me. I’m having an issue with turning a bunch of posts into a portfolio style layout. Moving them to portfolio broke the DB so I figured instead of moving them to portfolio I would bring portfolio layout to them. My issue is the categories. I am trying to figure out how to get the categories to show up in place of the filters. I am not a php programer but I am trying to learn so I’ hoping I selected the right code that would display the categories. I think I will start with this site to build my php knowledge. However, I would really appreciate and help that I can get to get this portfolio to act right…

thanks again!! ;D

<?php /* Template Name: Portfolio */ get_header(); ?>
    <br class="clear" />
<?php wp_reset_query();

// The Custom Query
$args = array(
‘post_type’ => ‘post’,
‘posts_per_page’ => 999,
‘order’ => ‘DESC’
);
[php]query_posts( $args );
while( have_posts() ) : the_post();
$color = substr(get_option(‘dcb_dynamic_color’), 1);
// Get the original thumbnail of the post
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), false, ‘’ );
$excerpt = get_the_excerpt();
// Get the custom fields
$vimeo = get_post_meta($post->ID, “vimeo”, true);
$youtube = get_post_meta($post->ID, “youtube”, true);
// Get the filter > Category of item
$catz = wp_get_object_terms($post->ID,‘filter’);
foreach($catz as $cat) {
$currcat = $cat->slug;
$catname = $cat->name;
break;
}
?>[/php]

<?php get_post_class(); ?>" id="post-item-<?php echo the_ID(); ?>">
<!-- Image Post -->
<div class="shadowBox_grid_3">
	<?php
    // 
    if($vimeo) {
    ?>
    <iframe src="http://player.vimeo.com/video/<?php echo $vimeo; ?>?title=0&amp;byline=0&amp;portrait=0&amp;color=<?php echo $color; ?>" width="280" height="200" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
    <?php } 
    elseif($youtube) { ?>
    <iframe width="280" height="200" src="http://www.youtube.com/embed/<?php echo $youtube; ?>?wmode=transparent" frameborder="0" allowfullscreen></iframe>
    <?php } 
    else { ?>
	<div class="hover"><a href="<?php echo $src[0]; ?>" rel="prettyPhoto[]" title="<?php the_title(); ?>"><span></span><?php
                                    $attr = array('class' => "", "alt" => get_the_title());
                                    the_post_thumbnail('third_size',$attr);
                            ?></a></div>
	<?php } ?>
</div>

<h4 class="gfont center"><a href="<?php the_permalink(); ?>"><?php echo the_title(); ?></a></h4>
<div class="center"><em><?php // Get the Genre
			$filters_terms = wp_get_object_terms($post->ID, 'category');
			if(!empty($filter_terms)){
				foreach($filter_terms as $term){
				  echo '<a href="'.get_term_link($term->slug, 'category').'">'.$term->name.'</a> ';
				}
			}
			?></em></div>
<?php endwhile; ?>
</div>
<!-- /Content of MAIN -->
<?php get_footer(); ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service