diff --git a/merchant-feed.php b/merchant-feed.php index dc95fba..296ba78 100644 --- a/merchant-feed.php +++ b/merchant-feed.php @@ -34,7 +34,8 @@ foreach ($products as $p) { $grindNote = $p['category'] === 'Bean' ? 'Available as whole bean so you can grind fresh for maximum flavor.' : 'Pre-ground to a versatile medium grind, ready to brew right out of the bag.'; - $title = htmlspecialchars($p['name'] . ' ' . $categoryLabel . ' Coffee'); + $nameSuffix = stripos($p['name'], 'coffee') !== false ? '' : ' ' . $categoryLabel . ' Coffee'; + $title = htmlspecialchars($p['name'] . $nameSuffix); $rawDesc = $p['description'] ?? ''; if (!empty($rawDesc)) { $desc = htmlspecialchars(