---
title: "WordPress Tip: Adding an Edit Link for Each Post"
date: 2010-09-07
description: "Tom Johnson’s blog on technical writing and AI: agent skills, docs for AI agents, docs-as-code, tech comm careers, and an API documentation course."
canonical_url: https://idratherbewriting.com/2010/09/07/wordpress-tip-adding-an-edit-link-for-each-post/index
---

> 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)
