{"id":1088763,"date":"2016-03-14T14:05:47","date_gmt":"2016-03-14T21:05:47","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/"},"modified":"2016-03-30T09:35:02","modified_gmt":"2016-03-30T16:35:02","slug":"followup-acf-conflict-with-relational-field","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/","title":{"rendered":"Followup: ACF Conflict with Relational Field"},"content":{"rendered":"<p>Hello, all!  I just wanted to post a quick follow up to <a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/acf-conflict-with-relation\/#post-1088725\">this thread about the select2 conflict with the relational fields Advanced Custom Fields plugin<\/a>. <\/p>\n<p>I just received a notification saying that the Modern Tribe crew <strong>still haven&#8217;t had a chance to implement the fix<\/strong>, which involves using a more up-to-date version of the select2.js library.<\/p>\n<p>BUT, there is good news!  The temporary fix that was provided by George from Modern Tribe in that thread does seem have solved the problem for time being.  I discovered this just over the last few days when my site managers upgraded ACF (even though I told them not to) and I decided to give it a shot.<\/p>\n<p>For reference, here&#8217;s the code that George provided.  Just paste that into your functions.php file and the relational fields (with multi-select) is working again.<\/p>\n<pre><code>if ( function_exists( &#039;acf_get_dir&#039; ) ) {\n \n    add_action( &#039;wp_enqueue_scripts&#039;, &#039;tribe_events_disable_select2&#039;, 999 );\n    add_action( &#039;admin_enqueue_scripts&#039;, &#039;tribe_events_disable_select2&#039;, 999 );\n \n    function tribe_events_disable_select2() {\n    wp_dequeue_style( &#039;tribe-events-select2-css&#039; );\n    wp_dequeue_script( &#039;tribe-events-select2&#039; );\n \n        wp_enqueue_style( &#039;select2&#039;, acf_get_dir( &#039;assets\/inc\/select2\/select2.css&#039; ), &#039;&#039;, &#039;TribeTempFix&#039; );\n        wp_enqueue_script( &#039;select2&#039;, acf_get_dir( &#039;assets\/inc\/select2\/select2.min.js&#039; ), array(&#039;jquery&#039;), &#039;TribeTempFix&#039;, true );\n    }\n}<\/code><\/pre>\n<p>SO&#8230; A (somewhat reticent) &#8220;hooray&#8221; for the Modern Tribe team for getting a fix that, at least, addresses the issue in the short term.  <strong>I really appreciate the help with getting it working.<\/strong>  But PLEASE keep this on the roadmap for a maintenance release asap.  ACF is an really common plugin that I use on almost every site I build.  This conflict has caused me a headache-and-a-half.<\/p>\n<p>(Sidebar: I started a new thread because the original thread was automatically closed and I can&#8217;t post a reply there.  If any mods want to merge them, feel free.  I&#8217;m sure that would be more useful for future searchers).<\/p>\n<p>Thanks a ton for everything.<\/p>\n","protected":false},"template":"","class_list":["post-1088763","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Followup: ACF Conflict with Relational Field -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Followup: ACF Conflict with Relational Field -\" \/>\n<meta property=\"og:description\" content=\"Hello, all! I just wanted to post a quick follow up to this thread about the select2 conflict with the relational fields Advanced Custom Fields plugin. I just received a notification saying that the Modern Tribe crew still haven&#8217;t had a chance to implement the fix, which involves using a more up-to-date version of the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-30T16:35:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/\",\"name\":\"Followup: ACF Conflict with Relational Field -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-03-14T21:05:47+00:00\",\"dateModified\":\"2016-03-30T16:35:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Followup: ACF Conflict with Relational Field\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Followup: ACF Conflict with Relational Field -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/","og_locale":"en_US","og_type":"article","og_title":"Followup: ACF Conflict with Relational Field -","og_description":"Hello, all! I just wanted to post a quick follow up to this thread about the select2 conflict with the relational fields Advanced Custom Fields plugin. I just received a notification saying that the Modern Tribe crew still haven&#8217;t had a chance to implement the fix, which involves using a more up-to-date version of the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/","article_modified_time":"2016-03-30T16:35:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/","name":"Followup: ACF Conflict with Relational Field -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-03-14T21:05:47+00:00","dateModified":"2016-03-30T16:35:02+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/followup-acf-conflict-with-relational-field\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Followup: ACF Conflict with Relational Field"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1088763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1088763\/revisions"}],"predecessor-version":[{"id":1088963,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1088763\/revisions\/1088963"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1088763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}