Show Post Edit Link on Wordpress Blog Posts

Most of the wordpress themes by default comes with this but if you have got a custom theme or may be you are unlucky enough, then your wordpress theme probably won’t be having edit this post link which means, if you ever want to edit the post, you again have to go to admin post dashboard, search for the post and then click on edit link instead of just clicking a simple edit this post link in the post itself.

If your theme is not having Instant post edit link, then you can edit the single.php file of your theme and somewhere at bottom (but in the loop) before comments, you can put this line

1
<?php edit_post_link('Edit this entry.','',''); ?>

and you should start seeing a Edit this Entry text in every blog post, clicking on which will take you to the post edit form.

Related posts:

  1. Edit Wordpress Blog Comments on the Fly with Ajax to Save time If you owns a wordpress blog and get lot of...
  2. Tag your Content and Blog Post by Countries and Flags This is not a very common plugin but can be...
  3. Send Twitter messages as Blog Post with Live Blog Plugin Here is another review of super cool plugin using which...
  4. Avoid making Duplicate or Similar Content Post on your blog This is the second article in the series of Wordpress...
  5. No Single.php file in Wordpress Theme Most of the worpdress themes do come up with index.php...


Liked this post ? Subscribe to MWolk Blog via RSS Feed or via Email and receive free daily Tech and Money making tips.

5 Responses to “Show Post Edit Link on Wordpress Blog Posts”

  1. 1thijs on May 2, 2009 :

    hi, i found this post while looking for an answer to my question, I have the php tags in my template, but the edit links are not showing. I just installed my theme on WP 2.7. Do you know if there is an option on the backend to disable them? I’ve searched, and I can’t find it.
    Appreciate it if you know.

  2. 2Abhimanyu on May 2, 2009 :

    You want to show the Edit this post link or not show it ? the code has to be put in single.php file and it should be active theme ofcourse.

    Does this help you ?

  3. 3thijs on May 2, 2009 :

    Sorry I wasn’t too clear. No, the code is already both in the index.php and in the single.php, but for some reason it does not show up on either the posts page or the single page, even when I am logged in. They’re not being hidden by some style rule either, they’re just not in the page source.
    I have to add that I have installed my custom theme, based on the default theme that comes with WP 2.6, and put that into 2.7. Perhaps the problem originates there. Otherwise I am clueless!

    Thank you very much for replying.

  4. 4thijs on May 2, 2009 :

    oops! problem solved. but I’m still oblivious as to what solved it, haha. They do show up now. Yesterday I tried everything, restarting Firefox, clearing the cache, clearing the cookies, nothing helped. I guess my computer refuses to work late nights on a friday…
    Feel free to delete my comments. In any case, thanks for your preparedness to help! :)

  5. 5Vaseem Ansari on Nov 1, 2010 :

    This is really good and default function of wordpress and everybody know about it, can u tell me a custom function that will show edit post link while we want to use that link outside the loop

Leave a Reply

Name Email Website URI