WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Example of lift_filters_default_fields

[Resolved] Example of lift_filters_default_fields

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

    @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

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

    Plugin Author prettyboymp
    Member

    @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.

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

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

    Plugin Author prettyboymp
    Member

    @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
    Member

    @kevinlangleyjr

    Marking as resolved since this was included in version 1.6.

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