Exhibit builder get exhibits

exhibit_builder_get_exhibits will return an array of exhibits based on given parameters

Usage

<?php exhibit_builder_get_exhibits($params = array()); ?>

Arguments

  • params: (array) An array of parameters and their values. The following parameters are available:
    • id
    • recent
    • tags
    • public
    • featured

Examples

The following example creates a loop of featured exhibits, and echoes the title for each:

<?php
$exhibits = exhibit_builder_get_exhibits(array('featured' => true)); 
 
foreach($exhibits as $exhibit) {
    echo $exhibit->title;
}
?>