Title: Permalink
Last modified: August 19, 2016

---

# Permalink

 *  [vanya99](https://wordpress.org/support/users/vanya99/)
 * (@vanya99)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/)
 * How do I put a permalink in a post?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Len](https://wordpress.org/support/users/lenk/)
 * (@lenk)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807341)
 * `<?php the_permalink() ?>` is what you’re looking for. In most themes it is tied
   to the post title something like …
 * `<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title()?
   ></a>`
 * If you don’t want the permalink tied to the post title then it’s rather simple
   to modify the above and manually slip it into your post somewhere such as the
   end.
 *  Thread Starter [vanya99](https://wordpress.org/support/users/vanya99/)
 * (@vanya99)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807401)
 * That didn’t work… in most blogs the permalink is in the category|comment line
   at the bottom. My WordPress doesn’t put it there and I don’t see any way to add
   it.
 *  [Len](https://wordpress.org/support/users/lenk/)
 * (@lenk)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807434)
 * What theme are you using?
 *  Thread Starter [vanya99](https://wordpress.org/support/users/vanya99/)
 * (@vanya99)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807463)
 * WordPress Default 1.6 by Michael Heilemann
 *  [geekit](https://wordpress.org/support/users/geekit/)
 * (@geekit)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807466)
 * Try by using following **code**..
 * `<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?
   php the_title_attribute(); ?>"><?php the_title(); ?></a>`
 * Hope this will help you..
 *  Thread Starter [vanya99](https://wordpress.org/support/users/vanya99/)
 * (@vanya99)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807471)
 * Where do I put that code? I put it in the post and nothing changed.
 *  Thread Starter [vanya99](https://wordpress.org/support/users/vanya99/)
 * (@vanya99)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807472)
 * I take that back; I put it in the post but instead of saying “permalink” it says“
   posted in (category)” with the “posted in” underlined like a link. I think it’s
   the permalink but of course no one would know that.
 *  [geekit](https://wordpress.org/support/users/geekit/)
 * (@geekit)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807477)
 * May I know where do you want to put this permalink in your theme? If I know the
   exact place I can help you?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807478)
 * > How do I put a permalink in a post?
 * what **exactly** are you trying to do? Are you trying to link to the current 
   post within that post???? The confusion in this thread is due to the ambiguity
   in your question.
 * And if so, why? You can make permalinks show up for ALL posts by using the code
   already given to you. It goes in your theme files, NOT inside the post.
 * WHAT are you trying to do, **exactly**?
 *  Thread Starter [vanya99](https://wordpress.org/support/users/vanya99/)
 * (@vanya99)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807512)
 * I’m trying to add “permalink” to the line at the bottom of each post:
    “Posted
   in(category)|Comments”
 * Which theme file does it go in?
 *  [geekit](https://wordpress.org/support/users/geekit/)
 * (@geekit)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807636)
 * You can use following code to display Permalink in your each post. Hence, you
   have to edit the `index.php` and obviously `single.php` files.
 * `<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?
   php the_title_attribute(); ?>">Permalink</a>`
 * By putting this code in your theme, you’ll have a link entitled [Permalink](https://wordpress.org/support/topic/permalink-2-2/?output_format=md#)
 * It’ll automatically links to the particular post.
 *  Thread Starter [vanya99](https://wordpress.org/support/users/vanya99/)
 * (@vanya99)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807677)
 * I changed the index.php file as you recommended… now I can’t get into my blog
   at all. Just the header displays. Can’t get into site admin. How do I restore
   my index.php file?

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Permalink’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 4 participants
 * Last reply from: [vanya99](https://wordpress.org/support/users/vanya99/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/permalink-2-2/#post-807677)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
