Drupal 6.x Create link to node using the path
Use this php code to print a link showing the URL Alias instead of node/7
<?php
print l(t('link text'), "node/$nid");
?>and with an image:
<?php
print l( '<img src="image/path.jpg" border="0" alt="" />', "node/1", array('html' => TRUE, ) );
?>This can be used anywhere on your site, blocks, in the template, or within page content.
