Title: Setting a Default Filter?
Last modified: August 20, 2016

---

# Setting a Default Filter?

 *  Resolved [demens](https://wordpress.org/support/users/demens/)
 * (@demens)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/setting-a-default-filter/)
 * Is it possible to set a default filter?
 * For example, if I browse to a separate section of my site and want to display
   my portfolio again, but with a filter already applied, is it possible?
 * Thanks!
 * [http://wordpress.org/extend/plugins/nimble-portfolio/](http://wordpress.org/extend/plugins/nimble-portfolio/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Nimble3](https://wordpress.org/support/users/nimble3/)
 * (@nimble3)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368371)
 * Yes its possible, below are the steps. (these steps are only for FREE version)
 * 1- Find the filter slug by browsing **Item Type** section under Nimble Portfolio(
   wp-admin)
 * 2- in scripts.js (of our plugin) add following JS in jQuery block,
 *     ```
       jQuery('div.nimble-portfolio-filter ul .current').removeClass('current');
       	jQuery('div.nimble-portfolio-filter a[rel="put-item-type-slug-here"]').parent().addClass('current');
       	jQuery('div.nimble-portfolio ul li').each(function() {
       		if(!jQuery(this).hasClass("put-item-type-slug-here")) {
       			jQuery(this).fadeOut('normal').addClass('hidden');
       		} else {
       			jQuery(this).fadeIn('normal').removeClass('hidden');
       		}
       	});
       ```
   
 * 3- Replace the `put-item-type-slug-here` from above JS with your filter slug.
 *  [Ramsus_80](https://wordpress.org/support/users/ramsus_80/)
 * (@ramsus_80)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368459)
 * Hello, your plugin is fabulous compliments, but I also have the problem of defining
   a default initial filter, I followed the procedure you have written but I could
   not get it to work, but must be called as a filter?
 * so:?
    [nimble-portfolio type = “my filter slug”]
 * because to me it does not work. help. thanks
 *  Plugin Author [Nimble3](https://wordpress.org/support/users/nimble3/)
 * (@nimble3)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368465)
 * The above procedure will work for only one filter, you need to set the filter
   slug in an hidden field and then use that field in jQuery block. you can also
   use any URL parameter/Querystring variable to set the filter slug.
 *  [Ashutoshjha](https://wordpress.org/support/users/ashutoshjha/)
 * (@ashutoshjha)
 * [13 years ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368511)
 * Hello , Pluggin gud, but facing problem while i click on catagories the pluggin
   don’t filter the categories like article, news and so on .
 * > is there any way out to make the pluggin, filter posts according to categories
 * Your help would be highly appreciated
 *  [Ashutoshjha](https://wordpress.org/support/users/ashutoshjha/)
 * (@ashutoshjha)
 * [13 years ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368512)
 * is there any way out to make the pluggin, filter posts according to categories
   
   Your help would be highly appreciated
 *  [Ashutoshjha](https://wordpress.org/support/users/ashutoshjha/)
 * (@ashutoshjha)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368513)
 * Is there any technic to filter posts rather then portfolious using this pluggin.
 * Help would be highly appreciated
 *  [Ashutoshjha](https://wordpress.org/support/users/ashutoshjha/)
 * (@ashutoshjha)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368514)
 * **Is there any technic to filter posts rather then portfolious using this pluggin.**
 * Help would be highly appreciated
 *  [Ashutoshjha](https://wordpress.org/support/users/ashutoshjha/)
 * (@ashutoshjha)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368515)
 * Is there any technic to filter posts rather then portfolious using this pluggin.
 * Help would be highly appreciated

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Setting a Default Filter?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nimble-portfolio_e1ebf4.svg)
 * [Wordpress Picture / Portfolio / Media Gallery](https://wordpress.org/plugins/nimble-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nimble-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nimble-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/nimble-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nimble-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nimble-portfolio/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Ashutoshjha](https://wordpress.org/support/users/ashutoshjha/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/setting-a-default-filter/#post-3368515)
 * Status: resolved