mihaicode
11/15/2017 - 9:48 PM

"Edit This" Button on posts

Put this in the theme file somewhere near where you output the_content() (likely in the single.php or page.php file) to make a link you can click that takes you into the admin to edit it. This link will only be visible when the viewer is logged in and has appropriate permissions to edit that page (administrator or author).

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