Created
June 5, 2012 18:55
-
-
Save kimisgold/2876950 to your computer and use it in GitHub Desktop.
Searching for item types within a collection using MultiCollections plugin
This file contains 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
<?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