City offices will be closed this Thursday and Friday, please enjoy a safe and celebratory Thanksgiving!

function exclude_from_search($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','exclude_from_search');