Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Post Not Showing Up If It Doesn't Have Meta Field Which Is In Search Form

Viewing 2 posts - 1 through 2 (of 2 total)
  • Mike Doble
    #208667

    I have a custom post type that I am searching. That post type has a bunch of possible custom fields that are searchable. I’ve put them in a search form. One of those fields I have included in the form as a number range and left the min value blank and the max value as auto detect. When I save the form the min value is set as 0 even if I leave it blank. The problem I’m seeing is that when I do a search I am only getting posts that have an entry for that meta field in the database. The value of that field can be blank but as long as it actually exists it will show up in results. However, if that field doesn’t exist for a post then that post won’t be returned as a result. The meta field is not required though so there are a bunch of results that are not showing even though they should be. How do I get around this?

    Trevor Moderator
    #208728

    The From and To cannot be left blank, and a limitation with range controls is that if a post doesn’t have a value, it is omitted from the results. The behavior you see is what I would expect. At this time, there is not a solution that would meet your particular needs.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.