Add An Edit Link to WordPress Posts

If you spot some content or a post title that needs updating, it’s nice to have an edit link to quickly access the edit page.  Otherwise, you might find yourself having to filter through all your posts via the admin screen.  Just add the following code to your single.php.

<pre><code><?php edit_post_link(__('Edit')); ?></code>