Select2 conflict with ACF Pro
-
Hi there! Thanks for this super useful plugin.
I’m working on a site that uses both WP-Members and [Advanced Custom Fields Pro](https://www.advancedcustomfields.com), and unfortunately it looks like as of WP-Members version 3.2.2, they’re loading two different versions of the Select2 JS library that are conflicting with one another. This makes ACF-generated dropdown fields unusable in the WP admin interface.
It looks like the simplest way to resolve this conflict on the WP-Members side would be to:
* Change the version of Select2 that WP-Members relies on from 3.4.8 to the latest (currently 4.0.5)
* Make sure that the fourth argument to bothwp_register_style()
andwp_register_script()
is the correct version number (instead of'1.0'
), so that other plugins that also rely on select2 can tell which version WP-Members is usingPlease let me know if I can provide any other info.
- The topic ‘Select2 conflict with ACF Pro’ is closed to new replies.