• 4alexandr

    (@4alexandr)


    My site have page with several post-tabs.

    js function postTabs_show hide all elements on page with class .postTabs_divs, even in other posts.

    My fix:
    replace

    jQuery('.postTabs_divs').each(function() {
    			jQuery(this).hide();
    		});

    with

    jQuery('.postTabs_divs').each(function() {
    
    var _info = this.id.split('_');
    if( _info[_info.length-1] == post ){
    	return ;
    }
    
    			jQuery(this).hide();
    		});

    http://wordpress.org/extend/plugins/wordpress-post-tabs/

  • The topic ‘Bug in js function postTabs_show()’ is closed to new replies.