Help adding categories to CP search function
Can anyone help with this?
I would like to edit the CP search function to look in categories.
In function "custom_search_where($where)" in theme functions, I have added:
$query .= " AND ($wpdb->term_taxonomy.taxonomy = 'category')";
$query .= " AND ($wpdb->term_taxonomy.term_id IN(5,20))";
It isn't working yet - can anyone help, or point me in the right direction?