// capture content so we can maniuplate it before rendering it ?>
ob_start(); ?>
Below is a gallery of our current inventory. Click the image to view a description and full size version of the image.
$content = ob_get_clean(); ?>
include("wp-includes/sharp/functions.php");
$id = get_the_id($content);
ob_start();
include("wp-includes/sharp/gallery.php");
$galleryContent = ob_get_clean();
// replace our gallery HTML with our sharp_display id bracket tag
$content = str_replace('[sharp_display id="' . $id . '"]', $galleryContent, $content);
// finally output the content
echo $content;
?>