WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Picture / Portfolio / Media Gallery
[resolved] Setting a Default Filter? (9 posts)

  1. demens
    Member
    Posted 1 year ago #

    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/

  2. Nimble3
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Ramsus_80
    Member
    Posted 1 year ago #

    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

  4. Nimble3
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. Ashutoshjha
    Member
    Posted 1 year ago #

    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

  6. Ashutoshjha
    Member
    Posted 1 year ago #

    is there any way out to make the pluggin, filter posts according to categories
    Your help would be highly appreciated

  7. Ashutoshjha
    Member
    Posted 1 year ago #

    Is there any technic to filter posts rather then portfolious using this pluggin.

    Help would be highly appreciated

  8. Ashutoshjha
    Member
    Posted 1 year ago #

    Is there any technic to filter posts rather then portfolious using this pluggin.

    Help would be highly appreciated

  9. Ashutoshjha
    Member
    Posted 1 year ago #

    Is there any technic to filter posts rather then portfolious using this pluggin.

    Help would be highly appreciated

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.