Title: [Plugin: W3 Total Cache] Adding The Same JS To Multiple Groups
Last modified: August 19, 2016

---

# [Plugin: W3 Total Cache] Adding The Same JS To Multiple Groups

 *  Resolved [manunkind](https://wordpress.org/support/users/manunkind/)
 * (@manunkind)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/)
 * I know exactly what I need to do but I can’t seem to get the plugin to allow 
   it. I would like to have the same JS script run in different groups. For example,
   I need it to load on Pages and Single posts only. The plugin will not allow this
   and throws an error that there is duplicate scripts. Apparently it only allows
   ONE JS script (of the same name) in ONE group.
 * The feature is great but it should allow this or else why bother have the groups
   when the scripts will have to stay in Default and load on every page anyway.
 * Is there a way to do this?

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

 *  Thread Starter [manunkind](https://wordpress.org/support/users/manunkind/)
 * (@manunkind)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323080)
 * Actually, it’s the same for CSS too. Everything can only be in one group.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323276)
 * Confirmed, this is a bug. It will be fixed in the next release, meanwhile you
   can edit your configuration file directly: wp-content/w3-total-cache-config.php.
   If that’s not acceptable contact me directly.
 *  Thread Starter [manunkind](https://wordpress.org/support/users/manunkind/)
 * (@manunkind)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323284)
 * I can wait until it’s fully implemented and working correctly. No problem. Thank
   you for this awesome plugin!
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323313)
 * Ok, well I have the fix ready, the bug was introduced when I expanded the minification
   handling to all templates.
 *  Thread Starter [manunkind](https://wordpress.org/support/users/manunkind/)
 * (@manunkind)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323322)
 * Any ETA for 0.8.5.2? Or will this just be rolled into the next full version? 
   If it’s right around the corner I can certainly wait. If it might be a while 
   yet I’ll contact you directly via your support form to get the fix.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323329)
 * It would likely be in the next full version.
 *  Thread Starter [manunkind](https://wordpress.org/support/users/manunkind/)
 * (@manunkind)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323337)
 * I can’t get the syntax correct for the arrays. I sent you a support request via
   your form to hopefully get the fix for this.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323338)
 * Ok.
 *  Thread Starter [manunkind](https://wordpress.org/support/users/manunkind/)
 * (@manunkind)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323380)
 * The fix you sent me worked great. Thank you very much.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323382)
 * You’re welcome.

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

The topic ‘[Plugin: W3 Total Cache] Adding The Same JS To Multiple Groups’ is closed
to new replies.

 * 10 replies
 * 2 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-adding-the-same-js-to-multiple-groups/#post-1323382)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
