Forums › Forums › Search & Filter Pro › Post type checkbox: multiple selections does not work
- This topic has 19 replies, 3 voices, and was last updated 5 years, 6 months ago by Ross.
-
Anonymous(Private) April 19, 2019 at 3:35 pm #208835
Hi, I have just purchased the plugin and I am creating my first search form
Just to start I am trying with Post Type, input type Checkbox
This is my search page: https://fabuportal.com/buscador/
By default both checkbox are blank, so it should retrieve nothing, as I have not chosen any post type – despite this it retrieves 53 results
I mark the first post type, click submit, and I get 7 results (https://fabuportal.com/buscador?post_types=ecurso), this looks fine
I unmark the first post type, mark the second post type, click submit, and I get 46 results (https://fabuportal.com/buscador?post_types=event), this looks fine
I now mark both post types, click submit (https://fabuportal.com/buscador?post_types=ecurso,event) and I get “No results found”
This does not make sense to me, as it is in this case where I should see the 53 resultsThank you in advance for your comments,
LolaTrevor(Private) April 23, 2019 at 11:40 am #208915My apologies for the delay in replying. In the UK we have had a long 4 day national holiday weekend this last weekend.
On any normal field control, when NO selection has been made, ALL posts will be returned, as you have not yet filtered the form (there are coding ways around this, by detecting if any filters have been selected, and if not, do not display any results).
In the second question, you have the Post Type control is set to an AND search relationship, but it would need to be set to ‘OR’ to do as you want, but that is not an option for this special field. You would need to have the ‘type’ set as a custom taxonomy instead, and use that to select from.
-
AuthorPosts