Created
January 18, 2013 10:16
-
-
Save dannewns/4563610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$attachments = new Attachments( 'attachments', $post->ID ); | |
if( $attachments->exist() ) : | |
$attachment->get_single(0); | |
cats = get_the_terms($post->ID, 'portfolio_categories');?> | |
<li> | |
<a href=""> | |
//cant do the below because it just wont work | |
<?php echo $attachment->image( 'portfolio-small' ); ?> | |
<div class="project-content"> | |
<h3><?php the_title() ?></h3> | |
<p><? foreach ($cats as $cat):?><?=$cat->name?><? endforeach;?></p> | |
</div> | |
</a> | |
</li> | |
<?php | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment