Skip to content

Instantly share code, notes, and snippets.

@kimisgold
Created June 5, 2012 18:55
Show Gist options
  • Save kimisgold/2876950 to your computer and use it in GitHub Desktop.
Save kimisgold/2876950 to your computer and use it in GitHub Desktop.
Searching for item types within a collection using MultiCollections plugin
<?php if($multiItems = multicollections_get_items_in_collection(10, 'Book')):
foreach($multiItems as $multiItem) {
if($fullsizeHtml = item_fullsize(array('class' => 'theme-book-cover', 'alt' => item('Dublin Core','Title')))) {
echo '<div class="theme-book">';
echo '<a href="'.item('permalink').'">'.$fullsizeHtml.'</a>';
echo '<p class="theme-book-meta three columns omega"><span class="theme-book-title">'.link_to_item().'</span><br><span class="theme-book-author">by '.item('Dublin Core','Creator').'</span></p>';
echo '</div>';
}
}
endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment