Con questo codice stampo l'url del post
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>