Support » Plugins » Hacks » implement search with categories checkboxes

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

    <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" />
Viewing 2 replies - 1 through 2 (of 2 total)
  • 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?

    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.