Exhibit builder recent exhibits

exhibit_builder_recent_exhibits returns an array of Exhibit objects recently added to your Omeka archive.

Usage

<?php exhibit_builder_recent_exhibits($num); ?>

Arguments

  • $num: Integer. Default value is 10.

Examples

Getting 20 Recent Exhibits

The following will return an array of the last 20 recent exhibits, which can then be used in a loop:

<?php $exhibits = exhibit_builder_recent_exhibits(20); ?>

Creating a Loop of Recent Exhibits

The following example uses exhibit_builder_recent_exhibits in a loop, and will echo the title for each:

<?php 
 
    $exhibits = exhibit_builder_recent_exhibits(20); 
 
    foreach($exhibits as $exhibit):
 
        echo '<h2>'.$exhibit->title.'</h2>';
 
    endforeach;
 
?>