Support Forums

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

Forums Forums Search & Filter Pro how to filter results using an advanced custom field

Viewing 2 posts - 1 through 2 (of 2 total)
  • Herco Terweij
    #223529

    Hii there.

    I have a custom posttype that uses advanced custom fields. This is, sith searcg & filter pro a powerfull combo. However i stumbled upon a problem. I cant seem to find out how i should sort de results using a custom field..

    Trevor Moderator
    #223536

    Custom Fields are properly call Post Meta:

    https://www.screencast.com/t/ibg1tyWFq

    So you would sort by Meta Value.

    Be warned of two things though:

    #1 see this post about Post Meta Key names when using the ACF plugin:

    https://support.searchandfilter.com/forums/topic/search-options-not-working-with-acf/#post-217575

    #2 If you sort by Meta Value, if a post has NO value set, the post will be excluded completely from the results. Thus, the Post Meta you sort on needs to have a vlaue for every post (this can be forced in the ACF Group field settings).

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

You must be logged in to reply to this topic.