Posts Tagged ‘snippet’

Code Snippet 3 - Create post slugs

If you’re used to WordPress, you must have noticed that usually a blog doesn’t use the default permalink structure (like http://site.com/?p=43, where 43 is the post ID store in the database). Instead, almost all blog owners tend to use the built-in option form to set the permalinks to something similar to http://site.com/a-great-post and leave the [...]

More »

Code snippet #2 - Shorten Links Using Bit.ly

Following the first snippet, here is another small one to shorten a link using Bit.ly. I chose Bit.ly over other link shortening services due to a simple reason: Twitter uses it as default (by now). Code snippet #2 - Shorten Links Using Bit.ly Purpose Create a shortened URL using Bit.ly. This is extremely useful for [...]

More »

Code snippet #1 - Get Latest Tweet

Ok so I’m following some guy’s recommendation (sorry, I really forgot his name as well as his blog address) to try to post something useful even when I don’t have anything to blog about. How about a series of code snippets? To some they are old but to the others they may help - for [...]

More »