Redirecting WordPress feeds to Feedburner

With WordPress 2.8 onwards, the function “add_theme_support” came into play. That means fudging the link in the header the good old way no longer works. Either you turn it on or off. There are plugins that can handle the switch for you but I didn’t want to have too many menial plugins installed. So how I did mine.

(Please remember to backup your files!)

Step 1

Go to your themes function.php file and comment out the code

add_theme_support( 'automatic-feed-links' );

Step 2

Go to your themes header.php file and insert this code.

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="http://feeds.feedburner.com/yourfeedname" />

That’s it. So now your feed is automatically listed to feedburner.

Step 3 (Optional)

So this part bothered me a little. Although your feed link is to Feedburner, if someone hits your feed directly, in this case for me its teo.net/feed, it will still be allowed. To prevent this, I created a simple HTTP 302 temporary redirect in my .htaccess file. You can use a permanent redirect, HTTP 301, if you like. So open your .htaccess file and insert this code. Do not insert this between # BEGIN WordPress and #END WordPress, insert in below it.

Redirect 302 /feed http://feeds.feedburner.com/yourfeedname

Of course, this ‘method’ will only work if you have access to .htaccess files to fudge around. So far its working for me and I’ve not faced any problems.

Posted in Development, Wordpress | Tagged | Leave a comment

8 Websites You Need to Stop Building – The Oatmeal.

Hilarious, I love point 5 best. Too many people telling me this and why their sites should be ‘socialised’.

Posted on by jamieson | Leave a comment

While fudging with my new wordpress installation, I found out to my delight that the new twenty ten theme has a special handle for asides. All I needed to do was to create a category called Asides and it’ll handle the rest. Now all I’ve got to do is to make a widget for it.

Posted on by jamieson | Leave a comment

Bukit Fraser 2010

Took a weekend trip up to Bukit Fraser, Pahang, Malaysia for some bird watching. I’m new to birding and was lucky to have a season hand guide me along the way. Located about 500km, by road, from Singapore. Took us about close to 7 hours of driving with stops along the way for food and drinks.

Bukit Fraser

Bukit Fraser

Heading up from The Gap proved unsettling for one and we had to make frequent stops for her. I think its motion sickness from all the short and tight turns up. As we went up the air slowly but surely got cooler till at the top it was a nice cool 23C. We quickly settled in at the Jelai Highland Resort, which I’ve heard was a birders favourite. Its not 5-star and I was ok with it but if you do go, do set you expectations to basic.

Leech

Land leech

Best way to explore Bukit Fraser is to walk, there’s a good variety of trails from easy to advance. Be warn though, it can get damp and wet from being a lower montane range. As with a wet areas, leeches abound! So do dress well, a long pants, hiking boots and long wooly socks will do that trick.

Here’s some of birds that I managed to catch with an Olympus, a model that boast a 26x optical zoom, which I’m not very pleased with but that’s another story. Peter, the seasoned birder, kindly pointed out to me exactly what I was looking at. I must admit that I wasn’t really keen on bird watching until I tried to identify birds. Usually I’ll just tag along and look for insects. This time though I seem to have ‘caught the bug’.

Here’s some of the birds I managed to snap.

Juvenile Black-throated Sunbird

Juvenile Black-throated Sunbird

Black Throated Sunbird

Black Throated Sunbird

Black Throated Sunbird

Black Throated Sunbird

Silver-eared Mesia

Silver-eared Mesia

Silver-eared Mesia

Silver-eared Mesia

 
Long-tailed Sibia

Long-tailed Sibia

Long-tailed Sibia

Long-tailed Sibia

Long-tailed Sibia

Long-tailed Sibia

Long-tailed Sibia

Long-tailed Sibia

Lesser Racket-tailed Drongo

Lesser Racket-tailed Drongo

 

Most of the other birds I did not managed to capture of the images came out poor. So I’m on the hunt to get another Point-N-Shoot camera, no SLRs for the moment, I don’t have the kinda funds for the lens.

Birds of South-East Asia

Birds of South-East Asia

Though its my third time up to Bukit Fraser, its my first real birding experience and I can feel the joy. I’ll definitely be back for more and will definitely bring my new copy of Birds of South-East Asia from Craig Robson. :)

Posted in Birds, Flora and Fauna | Leave a comment

So I finally got around to actually reinstall my whole site with an upgraded WordPress. Decided to SVN in the latest version instead of the usual FTP upload. Awful lot cleaner this way. Took the time to read tutsplus article on hardening the site. Still aways to go, getting flickr’s JSON to play nice and getting my recent tweets up. Bookjetty‘s widget is still the easiest to implement.

Most of the base installation is done together with some essential plugins. Its now 8am and I’m choosing between going for birding, continue upgrading this site or head back to bed. Its a Sunday, so I’ll chose going back to bed. So if the site is lacking, my apologies, I’ll find some time to fudge it soon.

Posted on by jamieson | Leave a comment