WordPress.org

Ready to get started?Download WordPress

Forums

implement search with categories checkboxes (3 posts)

  1. baalstorm
    Member
    Posted 3 years ago #

    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>
  2. Grubbyseismic
    Member
    Posted 3 years ago #

    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?

  3. baalstorm
    Member
    Posted 3 years ago #

    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"

Topic Closed

This topic has been closed to new replies.

About this Topic