Support » Plugin: GEO my Wordpress » Adding Custom Search Form Taxonomy Filter

  • I am trying to update my custom templates after upgrading to to Geo my WordPress 3.0. I’ve gotten almost everything working properly, but haven’t figured out how to properly add a filter to update the $args[‘usage’] parameter so I can output custom <option> elements in the taxonomy filter in a search form. I thought I could use the ‘gmw_search_form_dropdown_taxonomy_args’ filter, but it’s not working. My goal is to add some data-attributes to the <option> elements.

    function change_to_custom_tax_filter( $args, $taxonomy, $gmw ) {
      $args['usage'] = 'custom_dropdown';
      return $args;
    }
    add_filter( 'gmw_search_form_dropdown_taxonomy_args', 'change_to_custom_tax_filter', 30, 3 );
    • This topic was modified 5 years, 10 months ago by korynorthrop.
  • The topic ‘Adding Custom Search Form Taxonomy Filter’ is closed to new replies.