I've got two similar problems.
I created file node--my_content_type.tpl.php.
In that file, where I'd like to takeprint the username as string. I tried the following code, but unfortunately it doesn't work. How can I do it?
<?php
print $name;
?>
but unfortunately id doesn't work. How can I do it?
The second one:
In my content-type I've got several fields, e.g. 'price' as real-valued field. As above , I'd like to take 'price' as string. I've no idea, how can I do it.