How to Add the “Edit This” Link Somewhere In Your Blog Posts
September 26, 2007 by Gaman
The “Edit This” link lets you go directly to WordPress’s Write Post editor where you can edit any post that has been published. It offers a more convenient way to edit your posts than having to login into your Dashboard and click Manage > Posts
The link is usually placed next to the date or post info and only visible when you are logged in as admin, editor, author, or anyone who has been granted with the ability to edit a post.
Some WordPress themes have this function built-in while for others, you would have to add it yourself. To do so, login to your Dashboard, and then go to Theme Editor under the Presentation tab.
Select your Single Post or Main Index Template file, then add the following code anywhere you want the “Edit This” link to appear. Done? You are ready to go.
<?php edit_post_link(); ?>