- This topic has 1 reply, 2 voices, and was last updated 6 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › how to filter results using an advanced custom field
Tagged: acf, custom fields, filter order by, gotcha, result, sort by custom fields, warning
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).