The setup When a new article is written, wordpress will update the blog RSS and this feed always contains the latest contents of your blog. For this blog, that’s davidtan.org/feeds.

Some people uses feedburner to publish and track where their feeds are viewed, clicked and consumed. Plus, there’s also a setting in feedburner that will sync new posts to your twitter account as well (ex. @davidtanth). You can also subscribe to your blog’s feed in Google Reader to keep track of your own blogs.[Read more…]

Redirecting traffic from one URL to another is a common task among webmaster. It’s usually done so when old pages are renamed/moved and you want to redirect people to the new page instead of letting them get a 404 no page found error. Affiliate marketers also do this intentionally to cloak their links and redirect users to the real link which hold their tracking id or affiliate credentials.[Read more…]

Let’s say you’ve installed wordpress into the database wp_wordpress and you want to fetch some data from another independent database which has nothing to do with wordpress (ex. mydb). Here’s how you can do it.[Read more…]

I found the EXEC PHP wordpress plguin while trying to figure out how to execute PHP code inside a wordpress post and page. It works, but do note that you’ll need to make a few settings changes so that your php code will be recognized as php tags and executed.[Read more…]

I was messing around today with a wordpress plugin which is quite old and hasn’t been updated by the author for quite some time now. Most wordpress plugins use the wordpress global variable $wpdb but there was another global variable which is $tableposts which I’ve never seen before.[Read more…]