How to get an edit post or edit page link

Some themes do not include an ‘edit post’ or ‘edit page’ link!

It’s hard to believe that such a simple addition can be forgotten and it’s so useful!

A small snippet of code rectifies the problem easily. Here’s how you do it …

  • Login and go to Admin>presentation>theme editor
  • Open file ‘Single.php’ Single post file in the list
  • You can enter the edit link wherever you think best
  • example; find the line
<?php the_content('<p>Read the rest of this entry »</p>'); ?>

and add beneath it

<?php edit_post_link('(Edit Post)', '', ''); ?>
  • Save the page and refresh a full blog post page to see your edit link under the post
  • Repeat the same process for a page by editing the ‘Page template’ file in the same way

Related posts:

  1. Tomboy to WordPress (ATOM)If you are a Linux user like I am (Ubuntu...
  2. WordPress for GenealogyFor those of you out there interested in seeing a...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , ,

Improve the web with Nofollow Reciprocity.
13 visitors online now
13 guests, 0 members
Max visitors today: 15 at 08:50 am UTC
This month: 15 at 09-09-2010 08:50 am UTC
This year: 37 at 06-03-2010 11:01 pm UTC
All time: 37 at 06-03-2010 11:01 pm UTC