---
title: "WordPress Tip: Adding an Edit Link for Each Post"
date: 2010-09-07
description: "$( document ).ready(function() { // Handler for .ready() called. $('#toc').toc({ minimumHeaders: 3, listType: 'ul', showSpeed: 0, headers: '#content h2, #content h3, #content h4, #content h5, #content h6' }); /*..."
canonical_url: https://idratherbewriting.com/2010/09/07/wordpress-tip-adding-an-edit-link-for-each-post/index.html
---

> For AI agents: a documentation index is available at https://idratherbewriting.com/llms.txt. Markdown versions of all pages are available by appending .md to any page URL.

# WordPress Tip: Adding an Edit Link for Each Post

You can add an "Edit" link in the metadata below your post title. This Edit link makes it easy to edit the specific post without having to navigate through the Posts section of your WordPress Dashboard.

Here's the edit snippet of code that I mention in the screencast:

```php
<?php edit_post_link('Edit', '', ''); ?>
```

Add this code snippet somewhere within the loop, such as with the post metadata.

[Video: Video](https://www.youtube.com/embed/LZiRTOQ4mp4)
