<script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/tab.js” charset=”utf-8″></script>
这样就可以了,其中<?php bloginfo(‘template_url’); ?>就是主题路径,调用图片的方法:
<img src=”<?php bloginfo(‘template_directory’); ?>/img/blank.jpg” alt=”<?php the_title(); ?>” />