• Hello everyone,

    I’m using the wp_dropdown_categories function on my site to let users filter their search with categories. In other words, if they select “fish” in the dropdown and write “pasta” in the search box, the site searches for all posts in the “fish” category. This works perfectly fine, so far so good.

    Now to my problem; I want to replace the dropdown with checkboxes, i.e. give the user the option of doing a deeper filtered search. I’ve been searching far and wide after this and tried out some examples but cannot get it to work the way I want to. The closest I’ve come is that I can display my categories in checkboxes and select them, but when I do a search it completely ignores the filter and searches through all categories anyway.

    Any ideas how I could solve this? Help would be much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use checkboxes in wp_dropdown_categories’ is closed to new replies.