Skip to content

Instantly share code, notes, and snippets.

@joehoyle
Created January 13, 2010 14:38
Show Gist options
  • Save joehoyle/276236 to your computer and use it in GitHub Desktop.
Save joehoyle/276236 to your computer and use it in GitHub Desktop.
<?php
/*
Shows a list of portfolio enrtries (limited to 5)
*/
$items = get_posts( array_merge( jhp_default_query_vars() ), array( 'showposts' => 5 ) );
?>
<ul>
<?php foreach( $items as $item ) : ?>
<li><a href="<?php echo get_permalink( $item->ID ) ?>">
<?php echo get_the_title( $item->ID ) ?>
</a></li>
<?php endforeach; ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment