“Edit This” Button on Posts and Pages

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

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).

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.