How to use meta_key

Forums › Forums › Search & Filter Pro › How to use meta_key

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #261637

    Hi,

    I was wondering how I can order the result of the filter on meta_key/custom field key? With a normal wordpress loop it’s possible with ‘meta_key’.
    So I have a datepicker for past and future events (ACF field). And the results of the filter has to be ordered on the date of the event. (ordered from 2022 to 2015)

    I looked in the support topics and on this link: http://docs.designsandcode.com/search-filter/#options
    but I couldn’t find the answer.

    L

    Trevor
    #261695

    You can set results order on the Posts settings tab of the form setup. You can select a meta key. But, be warned. If you sort by meta key, if any post does not have a value in this key, the post will disappear from the results.

Viewing 2 posts – 1 through 2 (of 2 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.