I need to output the permalink to a variable, and I would think this could be done like so:
$output .= get_the_permalink();
But it doesn't seem to work. I can't find any help in the Codex, which doesn't even mention get_the_permalink. Is it even a wordpress function? Any suggestions?