Mayor Jon Mutchler shares some thoughts on public service as he concludes his term of office.

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