Description
get_exhibit_section_by_id will return the database record for a Section with a given ID.
Usage
<?php get_exhibit_section_by_id($id); ?>
Parameters
- $id (integer) - The ID of the section you wish to retrieve. This should be a number, ideally matching the ID of a section already existing in your archive.
Example
Using get_exhibit_section_by_id, you can display metadata for a specific section anywhere in your theme. The following code will set a variable to be the section with an ID of 7, and will then echo the title of that section, wrapped in an h2 tag.
<?php $section = get_exhibit_section_by_id(7); echo '<h2>'.$section->title.'</h2>';

