How to just load the exposed views filter

Example of how to load just the exposed views filter:

$view = views_get_view('example_views');
      if($view){
        $view->set_display('page_1');
        $view->init_handlers();
        $form_state = array(
          'view' => $view,
          'display' =>; $view->display_handler->display,
          'method' => 'get',
          'rerender' => TRUE,
          'no_redirect' => TRUE,
        );
        $output = drupal_build_form('views_exposed_form', $form_state);
      }else{
        $output = ""; // error messages or something...
      }
 
      print $output;

Using hook_theme

Example of using hook_theme.

/**
 * Implementation of hook_theme().
 */
function example_theme() {
  return array(
    'example_taxonomy' => array(
      'template' => 'example-taxonomy',
      'arguments' => array('node' => NULL, 'options' => NULL),
    ),
    'example_taxonomy_terms' => array(
      'arguments' => array('voc' => NULL, 'node' => NULL, 'options' => NULL),
    ),
    'example_front_page' => array(
      'template' => 'example-front-page',
      'arguments' => array(),
    ),
  );
}