Home > Blogging
WordPress: adding “Edit This” link, recent comments
Sunday, November 23rd, 2008 | Blogging |
From way back before I began blogging I believed that every post should have an Edit This link. Blame it on Dave Winer. Reducing the pain of editing your mistakes and expanding your thoughts makes for a better blog.
I finally got my wish the other day with a little Googling. Just add this code to your Single Post, Archives, and Main Index Template. You have to be logged in as an administrator to see the link.
<?php edit_post_link(’Edit This’, ‘optionaltextbeforelink’,'optionaltextafterlink’); ?>
I found a new recent comments plug-in that has the behavior I wanted. The Get Recent Comments plug-inhas an option for everything. You can make the output as simple or as complicated as you want. I made it simple: don’t show trackbacks and pings, don’t show commentor’s names, show the subject name, group by subject, and show the number of comments. Bingo.
Here are the settings I used:
Template for the post: <li><strong><a href=”%post_link” title=”%post_title was posted on %post_date”>%post_title</a> <a href=”#” title=”There are %post_counter comments to this posting”>(%post_counter comments)</a></strong><ul>
Template for the comments: (empty)
Template for the closing tags of the post template: </ul></li>
No comments yet.
Leave a comment
Search
Active Discussions
- Range Report: Ruger P95C (9 mm) (162 comments)
- Brushy Mountain Prison (70 comments)
- Downtown Franklin, TN Pictures (4 comments)
- Oil sands petroleum extraction is already profitable (1 comments)
- How to Get a Person on the UPS 800 Number Phone Menu (5 comments)
- Jack Neely on the Clarence Bunch Gang (3 comments)
- Peak coal (40 comments)
- Double Barrel Pump Shotgun, Moe Szyslak-style (26 comments)
- Word of the Day: Scaramouche (1 comments)
- episiarch on conventions (1 comments)
- Bush was no deregulator (2 comments)
- 2,008 Things I Learned in 2008 (1 comments)
- Volunteer Enterprises Commando, Made in Knoxville, TN (14 comments)
- 2008: The end of anthropogenic global warming (2 comments)
- Sugar’s Ribs BBQ in Chattanooga, TN (5 comments)
A Word from Our Sponsors
Archives
Subscription Options
Categories
- A&E
- Best Of
- Blogging
- Comic Books
- Dancing Baloney
- Dear Lazyweb
- E-commerce
- East Tennessee
- Economics
- Environment
- European Union
- Family Tree - Jones Side
- Family Tree - Moore Side
- Food & Drink
- Funny Ha-Ha
- Guns
- Health Care
- Holidays
- Home Life
- Johnia Berry
- Macular Degeneration
- Media Behaving Badly
- Middle East
- Misc
- Municipal Wi-Fi
- News
- Nifty
- Photos
- Political Survival Kit
- Politics
- Polls
- Population
- PSAs
- Quotes
- Rocky Top Brigade
- Science
- Social Security
- Star Wars
- Tech
- The Usual Suspects
- Travel
- True Crime
- Word of the Day






