A simple WordPress theme modification added this very handy feature to my blog. Now I’ can go to edit page of every post by just click on the link “Edit this post” as shown in the below image
To display a link to edit the current post, if a user is logged in and allowed to edit the post add this following code to WordPress template
<?php edit_post_link(‘Edit this post’, ”, ”); ?>
If you are a WordPress newbie, you might be wondering to which files of theme we have to add this piece of code. For displaying the link in individual post pages add this code to single.php file. If you want to have this link on home page then you should add it to index.php file.
Need more instructions? Drop a comment or fill the contact form, I’ll be glad to assist you.
