Make post title a link to self

Many times I get a new wordpress theme and it is not to my liking , there is always something wrong with it!

I found a really great theme , but the endless tweaking gets on my nerves such as the single post pages don’t have the title as a clickable link.This is so common and yet there are a number of reasons why you would want this .

So navigate to the single post page , you will see a line above the date section<?php if(get_option(‘uwc_dates_posts’) == ‘on’) { echo ‘<div class=”date”>’; the_time(“l, F j, Y”); echo ‘</div>’; } ?<?php if(get_option(‘uwc_authors_posts’) == ‘on’) { echo ‘By ‘; the_author(); } ?>)that says h1 or h2 tags and in between it will say something like <h1><?php the_title(); ?>”

Change to <h1><a href=”<?php the_permalink() ?>”> <?php the_title(); ?></a></h1>

and save ,this is now a clickable link to self ( href the url >the title of the page …in english!)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Leave a Reply