Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

Save time by adding a Quick Edit Button in WordPress Posts

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
Save time by adding a Quick Edit Button in WordPress Posts

Have you ever made a mistake in your old WordPress posts and realized it when your user emailed you 4 months later? If you have, then you would normally have to go through the WordPress admin panel, search that post and edit it. This obviously takes a lot of time which can be saved by a Quick Edit link in each post page. Majority of the top themes have this included, but there are still theme designers that fail to include this simple feature in a theme. In this article, we will show you how you can add a quick edit button in your WordPress posts and comments.

Adding a Quick Edit Button to WordPress Posts

Simply open your theme’s single.php file and add this post anywhere inside the loop. Don’t worry, this will only be shown to users that have specific permissions. Average user will not see this button.

<?php edit_post_link(__('{Quick Edit}'), ''); ?>

Adding a Quick Edit Button to WordPress Comments

By default this code is added in the WordPress comments.php file, but if you don’t have the functionality, then add the following code:

<?php edit_comment_link(__('{Quick Edit}'), ''); ?>

By adding these codes, a Quick Edit link will be displayed on your post page, so you can simply edit the post with one click rather than searching the wp-admin panel for editing.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Armando E. Torre Puerto says:

    What’s “anywhere inside the loop”? Under waht line is that?

  2. Tom Farrell says:

    The idea of adding the Quick Edit to posts is great, but can I also add it to Links. I have a large number of links that need to be re categorised and Quick edit would be a great help.

  3. SS Kuruganti says:

    I know this is an old post, but I really needed to thank you for this. You instructions were simple to follow (and understand) and solved my problem perfectly! =)

  4. melissa says:

    Searched all over for instructions that made sense. Yours did. Thanks! :)

  5. Matthias says:

    Thank you for this post! I’ve accidentally deleted this code-snipplet from my WooThemes-Theme :)

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.