WordPress Plug-in - Slashdot.org Headlines
Feeling sensitive and creative, I decided to try my hand at writing a plug-in for WordPress. I wrote a small, simple plug-in to parse Slashdot's RSS feed and return the top headlines. You can specify the number of headlines to return and whether or not to return the headline description with each headline. The headlines are returned as links, so you can click into them to link to Slashdot's full stories. It's a nice plug-in to throw into your sidebar (or wherever) — after all, news for nerds is stuff that matters! Here's a sample of plug-in in action:
Slashdot.org Headlines
- Keeping an Eye Out When Sites Go Down
- 550 Metric Tons of Uranium Removed From Iraq
- Congress Tries To Strip Power From Anti-Wiretap Judge
- The Internationalization of Malware
- Scaling Large Projects With Erlang
- US Justice Dept. Sued For Cellular Tracking Information
- Bletchley Park Faces Financial Rescue
- AVG Backs Down From Flooding the Internet
- Your Computer As Your Singing Coach
- New Pictures of White Knight Two and SpaceshipTwo
- KDE 4.1 Beta 2 – Two Steps Forward, One Step Back?
- Digitizing Old Magazines?
- Finding Fault With Google’s Privacy Policy
- In Japan, a 900 Gigabyte Upload Cap, Downloads Uncapped
- There’s a Sucker Converted Every Minute
You can download the thing here. My PHP skillz are what you would call - slim to none! So, if the code is messy and not very logical, don't blame me. I'm working on it. At least the thing works. Hope some of you find the plug-in useful.


August 31st, 2005 at 7:45 am Posted 2 years, 10 months ago
Very nice plugin. Works fine. Thank you.
August 31st, 2005 at 8:27 am Posted 2 years, 10 months ago
Thanks, Orlando. Glad it worked out for ya.
September 1st, 2005 at 2:15 pm Posted 2 years, 10 months ago
Thanks man. ive been looking for something like this. I was just going to include external scripts but if there is a plugin made already… why not. thanks for your generousity
November 8th, 2005 at 8:42 pm Posted 2 years, 8 months ago
Thanks, this saves me a lot of work. I’m just setting up a blog for my girlfriend, who is a trainee teacher. I’ve amended your module so that I can display the BBc education News headlines on her site. Brilliant!
December 17th, 2005 at 1:45 am Posted 2 years, 6 months ago
I installed it and activated it and am stuck.. can’t get anythin… help!
February 11th, 2006 at 6:41 pm Posted 2 years, 4 months ago
Works great. Now I can let others see the headlines I’m currently checking out.
July 20th, 2006 at 7:46 pm Posted 1 year, 11 months ago
My website is in dutch and I would like to use this (if I can find a dutch website that has some support for this). But…Is it easy to change the content it displays?
My WordPress & PHP skills are evolving, but….
January 15th, 2007 at 9:06 am Posted 1 year, 5 months ago
[…] http://www.davewolf.net/2005/08/30/wordpress-plug-in-slashdotorg-headlines/ Tags: todo, wordpress […]
February 24th, 2007 at 4:56 pm Posted 1 year, 4 months ago
good one plugin !
p.s. there flags of commenters are bug, and display for all a flag of the man who now see it page (from it’s IP, location) - check it
March 2nd, 2007 at 10:32 pm Posted 1 year, 4 months ago
Lynx, thanks for the finding the bug with the flags. I never gave them much attention, but it did seem strange that everyone seemed to be coming from the United States!
March 5th, 2007 at 7:43 am Posted 1 year, 4 months ago
np
it’s good now
!
May 20th, 2007 at 3:46 am Posted 1 year, 1 month ago
[…] Visit […]
June 1st, 2007 at 11:25 am Posted 1 year, 1 month ago
I’ve figured out a way to tweak the file to display other feeds. How can I get two instances of this plugin running on one site? I want to display the RSS from two sites. Thanks in advance.
June 6th, 2007 at 5:56 am Posted 1 year, 1 month ago
Thanks man, it works great. I have it running on my site (vdsl2.se). Nice one.
@tom
It might work (haven’t tried this myself) if you make a copy of the one you got (SlashdotHeadlines.php) and change the name (of the php file) to something apropriate. Then open it and change:
on line 4
“Plugin Name: Slashdot.org Headlines” to e.g. “Plugin Name: Google Headlines”
on line 24
“function SlashdotHeadlines” to e.g. “function GoogleHeadlines”
And of course change the feed url.
Then upload and install/activate it.
and to call that new scripts function on your site use… instead of “SlashdotHeadlines(5)” use “GoogleHeadlines(5)”.
Cheers,
Mike
August 16th, 2007 at 11:31 pm Posted 10 months, 3 weeks ago
[…] Slashdot.org Headlines - Display the latest headlines from Slashdot on your site. […]
September 1st, 2007 at 8:29 am Posted 10 months, 1 week ago
[…] Slashdot.org Headlines - Display the latest headlines from Slashdot on your site. […]
September 26th, 2007 at 10:01 am Posted 9 months, 2 weeks ago
[…] Slashdot.org Headlines - Display the latest headlines from Slashdot on your site. […]
December 9th, 2007 at 9:49 am Posted 7 months ago
[…] Slashdot.org Headlines - Display the latest headlines from Slashdot on your site. […]
December 13th, 2007 at 12:14 pm Posted 6 months, 3 weeks ago
[…] Slashdot.org Headlines - Display the latest headlines from Slashdot on your site. […]
April 22nd, 2008 at 9:39 am Posted 2 months, 2 weeks ago
[…] Slashdot.org Headlines - Display the latest headlines from Slashdot on your site. […]