I've got a wordpress theme that I love to duplicate. To create things simpler on myself I am attempting to make use of the bloginfo function to call my jquery file..such as this:

<script type="text/javascript" src="<?php echo bloginfo("template_url"); ?>/js/jquery-1.4.2.min.js"></script>

I simply can't get results. After I check my source file it appears just like the code above.

Can this be also done? Or must i just no way? Thanks men!

Are you certain the above mentioned code is really inside a PHP-file and will get parsed through the server? I can not think about another reason PHP-code must be printed and never performed.

Without a doubt the issue is not within the PHP or JavaScript but in the manner you print that type of code. Are you able to paste more code that can help locating the problem?

Begin to see the Referencing Files From the Template chapter in http://codex.wordpress.org/Theme_Development

What is the title of the file? It will finish insperl.

Exactly what does the origin seem like whenever you notice in the browser?

Exist other areas within the file in which you use and it is that data correct?

Make certain you will find no blank lines in the finish from the source file. PHP does not like blanks lines in the finish from the code.

Gradually alter edit your theme's header.php file directly because custom fields of the theme might not be performed by PHP interpreter.

Two problems: No requirement for the echo within the Wordpress template tag ought to be

<?php bloginfo("template_url"); ?> Template Tags/info « WordPress Codex

And, the reason for attempting to include jQuery in the template directory, if this resides in wordpress-includes/js? You ought to be using Function Reference/wp enqueue script, in case your theme does not already include jQuery.

As I have not used at all PHP, this is just a guess...

PHP is really a server side language, and you are tyring for doing things around the client side?