if( !isset($cat_array) )
{
$cat_array = array();
}
$exclude_cats = sanitize_id_list($this->disp_params['exclude_cats'], true);
if( in_array( $Chapter->ID, $exclude_cats ) )
{ // Cat ID is excluded, skip it
return;
}
Then add the setting
'exclude_cats' => array(
'type' => 'text',
'label' => T_('Exclude categories'),
'note' => T_('A comma-separated list of category IDs that you want to exclude from the list.'),
),
It's easy. Just edit the "cat_line" function in _coll_category_list.widget.php
replace this
with
Then add the setting
Just added it to v5 :)