=date('now') ORDER BY is_featured DESC,event_date ASC LIMIT 4");
$randomInterval = setting('home_random_interval','2hours');
$slotKey = $randomInterval === 'day' ? date('Y-m-d') : (string)floor(time() / 7200);
$rotationLabel = $randomInterval === 'day' ? 'Refreshes daily' : 'Refreshes every two hours';
$randomPool = qall("
SELECT b.*,c.name cat,c.icon cat_icon,COALESCE(AVG(r.rating),0) avg,COUNT(r.id) rcnt
FROM businesses b
JOIN categories c ON c.id=b.category_id
LEFT JOIN reviews r ON r.business_id=b.id AND r.is_approved=1
WHERE b.is_active=1
GROUP BY b.id
");
usort($randomPool, fn($a,$b) => strcmp(hash('sha256',$slotKey.'-'.$a['id']), hash('sha256',$slotKey.'-'.$b['id'])));
$randomBiz = array_slice($randomPool, 0, 8);
include __DIR__.'/includes/header.php';
?>
This place is new. Sign up to claim your business, submit corrections and events!DISCOVERKEYSER
Community events will appear here as they are approved.
Keyser began as Paddy Town, then New Creek, before taking its current name in 1874 in honor of Baltimore & Ohio Railroad leader William Keyser. The rail line shaped the city’s downtown, its work ethic, and its role as Mineral County’s county seat.
Today the city sits where New Creek meets the North Branch Potomac River, with Potomac State College of WVU, local restaurants, small shops, healthcare, civic life, and outdoor access all close by.
Create a business-owner account, choose the listing you manage, add a verification phone number, and submit first edits or a YouTube/Vimeo video for admin review.