Elegant Themes: The Best Theme Club Ever!

You Are Here: Home » How-To & Hacks » Quick Tut: Adding Edit Link for Each Post

Quick Tut: Adding Edit Link for Each Post

After we have been blogging for some times, some of our older posts may require updates to ensure it to still be relevant to our readers. Unfortunately, we may not remember all the posts that require updates.

So, how to make it easier for you to update your blog posts?

My favourite way is to embed Edit link into your blog posts. With this link, it makes easy for you to edit the specific post without having to navigate through the Posts section of your WordPress Dashboard.

And the important part is it will only appear to registered users.

WordPress Tutorial

The "Edit" link in the image above will only appear to me.

To have such link, you just need to add below code snippet in your single.php and if you want the link in the page; put the code snippet into page.php.

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

To put fun element into it, you can edit the bolded “Edit” word with your own.

Example;

WordPress Tutorial

And that’s all! With this quick hack, it will definitely make the updating and editing process easier for you.

Feel free to leave comment  of your opinion on this quick tut.Either you love or hate it, say it. I am eager to know.

Leave a Comment

© 2011 Powered By Wordpress. Kissing Crust | Getting More Out Of WordPress.

Scroll to top