WordPress.org

Support

Support » Plugins and Hacks » Hacks » implement search with categories checkboxes

implement search with categories checkboxes

  • baalstorm
    Member

    @baalstorm

    Hello
    I’m trying to implement my search. dropdown list is already there, i want to add two cheboxes which display two specific categories.
    thanks

    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    <div><?php wp_dropdown_categories('depth=0&orderby=name&hide_empty=1&show_option_all=SELEZIONA CATEGORIA&exclude=14'); ?> 
    
    <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    
    <input type="submit" id="searchsubmit" value="Cerca" />
    </div>
    </form>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Grubbyseismic
    Member

    @grubbyseismic

    It would help a lot if you describe what you want the code to look like in the end.

    Also, where do you want the checkboxes to fit?

    How will they influence what is submitted?

    baalstorm
    Member

    @baalstorm

    at the moment the category dropdown list is filtering the search within a specific category. i would like to add two more filters, this time as checkboxes, which can make additional filtering via , let’s say, “catA” and “catB”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘implement search with categories checkboxes’ is closed to new replies.