jquery与wordpress.php中的其他jquery函数冲突


jquery conflict with other jquery functions in wordpress/ php

我正在尝试设置jquery即时邮政编码搜索功能[来自http://ideal-postcodes.co.uk],我已成功添加域上的字段http://www.avada.creativeitechnologies.com/wp-content/themes/Avada/examples/example.html但是"邮政编码"字段没有显示。如果我将这些文件移动到完全不同的域[即http://creativeitechnologies.com/test/examples/example.html],则页面工作正常。我确信这是jquery冲突的问题,但就是不能把它做好。

感谢您的帮助。

原因是部分文件未加载

  <script src="http://www.avada.creativeitechnologies.com/wp-content/themes/Avada/libs/jquery/jquery.js"></script>// This file not loaded 
  <script src="http://www.avada.creativeitechnologies.com/wp-content/themes/Avada/src/jquery.postcodes.js"></script> // This file loading
  <script src="http://www.avada.creativeitechnologies.com/wp-includes/js/jquery/jquery.js"></script> // This file loading

更改文件的顺序(jquery是第一个)

<script src="http://www.avada.creativeitechnologies.com/wp-includes/js/jquery/jquery.js"></script> 
<script src="http://www.avada.creativeitechnologies.com/wp-content/themes/Avada/src/jquery.postcodes.js"></script>