Recent Blog Posts
query("SELECT title, slug, created_at FROM blog_posts WHERE status = 'published' ORDER BY created_at DESC LIMIT 10");
$posts = $stmt->fetchAll();
foreach ($posts as $post) {
echo '- 📄 ' . htmlspecialchars($post['title']) . '';
echo '(' . date('M d, Y', strtotime($post['created_at'])) . ')
';
}
} catch (PDOException $e) {
echo '- No blog posts yet
';
}
?>
Shop Products
query("SELECT name, id FROM shop_modules WHERE status = 'published' ORDER BY created_at DESC LIMIT 10");
$modules = $stmt->fetchAll();
foreach ($modules as $module) {
echo '- 📦 ' . htmlspecialchars($module['name']) . '
';
}
} catch (PDOException $e) {
echo '- No products yet
';
}
?>