Limit Category Suggestion in Search Result of ISC

Problem

Too many categories are suggested in search result page

Solution

In /includes/classes/class.category.php (around line 855)

Find

$query .= " " . implode(" OR ", $searchPart) . ") " . $groupPermissionSql . " ORDER BY score DESC";

Add after

//===================
// MOD limit category suggestion in search result
$limit = 5;
//===================

Result

Leave a Reply

Your email address will not be published. Required fields are marked *