You can either just pull out the first entry in the array
($recentExhibit[0]), or, since you've got a settable parameter for
number, you probably want to do a foreach loop over the exhibits you get
from findBy, running exhibit_builder_link_to_exhibit on each one.
-John
> --
> You received this message because you are subscribed to the Google
> Groups "Omeka Dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/omeka-dev/-/ZHh2d1VCMEdsaXdK.
> To post to this group, send email to omek...@googlegroups.com.
> To unsubscribe from this group, send email to
> omeka-dev+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/omeka-dev?hl=en.
$recentExhibits = get_records('Exhibit', array('recent'=>true), 3);
if ($recentExhibits){
foreach( $recentExhibits as $exhibit){
$html .= '<div class="featured-exhibit">';
$html .= '<h2>Recent Exhibit</h2>';
$html .= '<h3>' . exhibit_builder_link_to_exhibit($exhibit) . '</h3>';
$snippetlink = ' '.exhibit_builder_link_to_exhibit($exhibit,'... Continue Reading.').'';
$html .= '<p>' . snippet($exhibit->description, 0, 600,$snippetlink) . '</p>';
$html .= '</div>';
}
}