Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

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

Forums Forums Search & Filter Pro Sort Field with Empty Meta Value

Viewing 2 posts - 1 through 2 (of 2 total)
  • Monica Pitts
    #137002

    I have a form that has the option to sort by a custom meta value. That works all well and good, but there is a bug. When that meta field is not filled in and the user selects an Ascending value the search form puts the posts with an empty meta field at the top of the results like they have a 0 filled in, even if its blank. Is there a way to make it just not display results that do not have that field filled in, or can I make it always put posts that have that meta field blank at the end?

    Thanks for your help.

    Trevor Moderator
    #137010

    I had though that a NULL value field would not be included at all, but the sort order (ASC or DESC) is determined by the sort logic in SQL databases, and that we cannot change.

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

You must be logged in to reply to this topic.