getById($id); if (!$pub || $pub['status'] !== 'published') { http_response_code(404); echo '

Publication Not Found

'; echo '

The requested publication could not be found.

'; exit; } // Get related publications $relatedPublications = []; if ($pub['categories_array']) { $firstCategory = $pub['categories_array'][0]; $relatedPublications = $publication->getByCategory($firstCategory, 'published'); // Remove current publication from related list $relatedPublications = array_filter($relatedPublications, function($p) use ($id) { return $p['id'] != $id; }); // Limit to 3 related publications $relatedPublications = array_slice($relatedPublications, 0, 3); } ?> <?php echo htmlspecialchars($pub['title']); ?> - <?php echo SITE_TITLE; ?>

By Published

Back to Publications