投稿記事のURLを表示するthe_permalink

WordPressで投稿記事のURLを表示するテンプレートタグ

<?php the_permalink(); ?>

下記のようにループ内で使用します。

<?php if(have_posts()):while(have_posts()):the_post(); ?>
	<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endwhile;endif; ?>