Title: Insert Permalink in Post
Last modified: August 19, 2016

---

# Insert Permalink in Post

 *  Resolved [foochuck](https://wordpress.org/support/users/foochuck/)
 * (@foochuck)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/insert-permalink-in-post/)
 * I have a post with an image. I want to wrap a permalink in an a href tag around
   the image.
 * Since I can’t use PHP in the post, how can I add this:
 * `<?php the_permalink() ?>`
 * Thanks

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

 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/insert-permalink-in-post/#post-1402478)
 * In the HTML editor, you can either type the link code in manually or you can 
   select the entire image tag and then use the “link” icon and insert the URL into
   the dialog box.
 * In the Visual editor, you can click the image, then click the little mountain
   icon to edit the image, then insert the URL into the dialog.
 *  Thread Starter [foochuck](https://wordpress.org/support/users/foochuck/)
 * (@foochuck)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/insert-permalink-in-post/#post-1402715)
 * Yes, but I wanted to use the_permalink so the link code is dynamic. Is that possible?

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

The topic ‘Insert Permalink in Post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [foochuck](https://wordpress.org/support/users/foochuck/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/insert-permalink-in-post/#post-1402715)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
