Have wordpress post title link to post page

So, I’m calling

<?php the_title(); ?>

and it is displaying fine. However, I’d like each title by default to be a hyperlink to it’s post page.

I’ve looked online for an answer, but can’t find one. I’ve seen some suggestions to use plugin, but the plugins I’ve seen don’t look at great. I think that it is most likely best to have the link created from the php template.

This might help you

http://codex.wordpress.org/Function_Reference/the_permalink

<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>

Ha. Thanks. I did see that code on a blog post, but I wasn’t sure because I couldn’t find it on codex. It worked very nice.

&lt;p class="PostsTitle"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" target="_blank"   "title="&lt;?php the_title_attribute(); ?&gt; "&gt;&lt;?php the_title(); ?&gt;  &lt;/a&gt;&lt;/p&gt;