Edit button on posts & pages

You can make a shortcut to the edit page for the post or page you’re visiting by adding a bit of code inside the loop in single.php or page.php This link will only be displayed for the logged in users with the right permissions.

Code Snippet:

<?php edit_post_link(__('Edit')); ?>

Posted in Admin area, Pages, Posts