Call the permalink to use in php templates within WordPress
<?php get_permalink(); ?>
<a href="<?php echo get_post_permalink(); ?>">