Post edit button

Use this snippet to add a edit post button to loop element. Style it with css using the wrap parameters.

Code Markup
edit_post_link();

edit_post_link('edit', '<div class="edit-button">', '</div>');