wp_head()の後に記入(SSLの場合)
<script src="https://ajaxzip3.googlecode.com/svn/trunk/ajaxzip3/ajaxzip3-https.js " type="text/javascript" charset="UTF-8"></script> <script type="text/javascript"> //<![CDATA[ jQuery(function(){ var addr_de = function(){ AjaxZip3.zip2addr(this,'','delivery[pref]','delivery[address1]','delivery[address2]'); }; var addr_me = function(){ AjaxZip3.zip2addr(this,'', 'member[pref]', 'member[address1]', 'member[address2]'); }; var addr_cu = function(){ AjaxZip3.zip2addr(this,'','customer[pref]','customer[address1]','customer[address2]'); }; switch($('#zipcode').attr('name')){ case 'delivery[zipcode]': $('#zipcode').change(addr_de).keyup(addr_de); break; case 'member[zipcode]': $('#zipcode').change(addr_me).keyup(addr_me); break; case 'customer[zipcode]': $('#zipcode').change(addr_cu).keyup(addr_cu); break; } }); //]]> </script>
*追記 2013/6/17
これで動作しない方は、$をjQueryに書き換えてみてください。