G'day,
Really frustrated with what should be a simple script. Using
wordpress...
************ Code ******************
function include_script ($jsFileName){
$callScript = '<script type="text/javascript" src="' . bloginfo
('template_url') . '/js/' . $jsFileName . '"></script>';
return $callScript;
}
echo(include_script('main_scripts.js') . "\n");
************ End Code ******************
********************** results ************************
http://www.domain.com/wp-content/themes/mytheme<script type="text/
javascript" src="/js/main_scripts.js"></script>
****************** End results *******************
Any help on why this might be happening would be greatly appreciated.
What am I missing?