• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home » WordPress » How to Add an ‘Edit This Entry’ Link into a WordPress Theme Template

How to Add an ‘Edit This Entry’ Link into a WordPress Theme Template

By Nile Flores 7 Comments


The ‘edit this entry’ template tag, or edit_post_link gives the blog owner and any other users with editing privileges to have a quick link to click on that will allow the user to edit an article. Users who do not have this capability, like your readers who are not registered members will not be able to see this link as it is hidden from them.

The code is put within the Loop.

<?php edit_post_link('Edit this entry.', '<br /><p>', '</p>'); ?>

Some users find this handy, while others do not. For those who have a theme that has the ‘Edit this entry’ and do not want it, go to the single.php or the page.php and look for the above coding. Simply remove it and it is gone.


Filed Under: WordPress Tagged With: wordpress, wordpress theme tweak, wordpress tricks

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

Edit The Number Of Words For The Excerpt in WordPress Changing Your Username In WordPress Applying Author Gravatar In Post Comments Display First WordPress Full Entry and then Following as Excerpts Brand Your WordPress Login Page Without A Plugin

Reader Interactions

Comments

  1. Leo says

    November 9, 2011 at 7:13 am

    Hi Nile!

    This is so fantastic! I liked this option. It is not possible to get a 100 percent right draft at one go. So, this is a great tool. Thanks for sharing information about it.

    Reply
  2. Jim Calaman says

    November 9, 2011 at 11:12 am

    Hi,
    How do you have time to blog with all you have going on? Kudos to you. I like this tag and although I am not great at editing wordpress themes, I might give this a try.
    Thanks,
    Jim

    Reply
  3. Chloe says

    November 9, 2011 at 11:02 pm

    Great post! It gives the blog owner and the other users with editing privileges to have a quick link to click on that will allow the user to edit an article. Users who do not have this capability, like your readers who are not registered members will not be able to see this link as it is hidden from them.

    Reply
  4. David Cornick says

    November 10, 2011 at 12:28 am

    What a clever idea!.I never get my posts right first time,or other things occur to me after posting the article.I will definately be using this code. Thanks

    Reply
  5. joseph brown says

    November 10, 2011 at 6:41 am

    very nice post Nile i like to remove this from my blog today thank you

    Reply
  6. Anonymous says

    November 10, 2011 at 5:09 pm

    in which template file should i add this ?

    Reply
    • Nile says

      November 11, 2011 at 3:30 am

      You can edit the single.php or even index.php (for your single post template)

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress