Title: Bug in js function postTabs_show()
Last modified: August 21, 2016

---

# Bug in js function postTabs_show()

 *  [4alexandr](https://wordpress.org/support/users/4alexandr/)
 * (@4alexandr)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/bug-in-js-function-posttabs_show/)
 * 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/](http://wordpress.org/extend/plugins/wordpress-post-tabs/)

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

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-post-tabs_ffffff.svg)
 * [WordPress Post Tabs](https://wordpress.org/plugins/wordpress-post-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-post-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-post-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-post-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-post-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-post-tabs/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [4alexandr](https://wordpress.org/support/users/4alexandr/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/bug-in-js-function-posttabs_show/)
 * Status: not resolved