• Resolved treska.eu

    (@treskaeu)


    Hi is it posible , show default filter unless selected otherwise?

    I have a lot of categories and tags and manually assigning filters is a lot of work.

    I looked at your code and found a method “get_allowed_filters” and added this code to it, but editing the plugin code is the wrong way.

    if ( empty ( $allowed_filters ) ) {
        $allowed_filters = array ( "my_filter_1", "my_filter_?" );
    }
    • This topic was modified 4 years, 1 month ago by treska.eu.
    • This topic was modified 4 years, 1 month ago by treska.eu.
    • This topic was modified 4 years, 1 month ago by treska.eu.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kaggdesign

    (@kaggdesign)

    Hi,

    I have added the filter to the method get_allowed_filters and also a new feature to the admin. Now you can select --Default Filters-- in the Category select, and assign a set of filters to it.

    Please check the latest 2.12 version.

    Thread Starter treska.eu

    (@treskaeu)

    Thank you very much, it works perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show default filter unless selected otherwise’ is closed to new replies.