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.
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 › I don't know how to make it work with ACF
Tagged: advanced custom fields, search and filter, V3
As I said in a previous post, I gave you a link on how to customise the results:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
However, you would need to do this yourself, as such customisation is not normally within the scope of our support.
What you want is that the results are sorted by category, but to do so is not an option in our plugin. The reason is that a post can have many categories, so which one would our plugin sort by? Instead, you would need to create a custom field that has only ever one term in it. Then you can sort by this, then you would need to create PHP to check this field for each loop of the while (which creates the list of posts), and output the header each time this field value changes.