Ha Wordpress-ben dolgoztok, akkor a
<?php the_permalink(); ?> kóddal ez megoldható.