To hide ads from the Matrimonial section or a category that contains audiences over 18 years old, please add this to the very bottom of your theme.php (please do not leave blank lines after this):
The only problem is that it is also looking to be adapted to the search page
<?php
function cust_exclude_from_latest() {
if (osc_is_home_page() ) {
$admin_categories = array(7, 69, 70, 71, 72, 73, 74); // Put here a list of category ID's
$mSearch = Search::newInstance();
$mSearch->addConditions(sprintf("%st_item.fk_i_category_id NOT IN (%s)", DB_TABLE_PREFIX, implode(',', $admin_categories)) );
}
}
osc_add_hook('init', 'cust_exclude_from_latest');
?>