Q:

Wordpress files Question

i don't know how to ask my doubt... i will try to make my question easy...
i created a new html file and tried to convert it into wordpress theme.. when i tried to include the files (image,js or anything) using "/sub-directory/filename" it is not including... when i change it into "http://localhost/wordpress/wp-content/themes/ashok/sub-directory/filename", it is working fine...
i don't know what is the problem... can u please help me...

A:

<?php bloginfo('template_url'); ?>/images/image.png

Works with every type of file.
If you need to include a template part, let's say search-form.php use:
<?php get_template_part('search-form'); // So, without .php extension ?>

