Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author prettyboymp

    (@prettyboymp)

    The filter is used to limit which facets/filters/order by options to show to a user by default. Currently, the plugin only handles the following default search filters: ‘date’, ‘post_type’, ‘post_categories’, ‘post_tags’, ‘orderby’.

    You can see an example of how the filter can be used to remove one of these default fields here in the constructor of the Lift_Search_Form class, though I’m still looking into why we’re filtering out the tags and category filters by default: https://github.com/voceconnect/lift-search/blob/master/wp/lift-search-form.php#L37

    hyperdo

    (@hyperdo)

    I would like the author and category as a filter. How do I do that?

    Plugin Author prettyboymp

    (@prettyboymp)

    Hi Hyperdo,

    We’re actually in the midst of reworking the search form filters to simplify integration. Since we’re currently in the middle of it, the ability to add you own is somewhat limited at the moment. Look for it to be included in release 1.6.

    hyperdo

    (@hyperdo)

    Thanks. When do you think you will have it ready?

    hyperdo

    (@hyperdo)

    If you could just let me know when the release will be, let me know. Thanks!

    Plugin Author prettyboymp

    (@prettyboymp)

    I’ve released a new version of Lift with classes setup to simplify adding new fields and controls to the search form. I’ll try to get some documentation on them on the site soon. In the meantime, you can look at how the core fields are added within the code as examples: https://github.com/voceconnect/lift-search/blob/master/wp/field.php#L564

    Plugin Author Kevin Langley Jr.

    (@kevinlangleyjr)

    Marking as resolved since this was included in version 1.6.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Example of lift_filters_default_fields’ is closed to new replies.