I'm trying to customize this piece of code in search.php (modern theme):
</fieldset>
<?php
if(osc_search_category_id()) {
osc_run_hook('search_form', osc_search_category_id());//this call the custom field when categories checkbox is selected, how can i pass the categories?
} else {
osc_run_hook('search_form');
}
?>
<button type="submit"><?php _e('Apply', 'modern'); ?></button>
Any help? I think that i can show custom field by passing the categories id...