php

Mind

Incrementing Alphanumeric strings in PHP

I ran into a problem the other day where I needed to increment an alphanumeric string. An alphanumeric string is a string consisting of both numerals and letters (0-9, a-z, A-Z). This combination of characters is base62, however, there is no base62 function in PHP to make this easy. There were a couple of solutions…

Mind

How to Block FeedBurner from Burning your Feed (in WordPress)

I have had an interesting problem for the past year, basically ever since I created a blog for my wife. For some really weird reason, any Google property (like Google Reader) would inject my feed from FeedBurner¬†into her feed… even though she is not even using FeedBurner. Unfortunately, Google pretty ¬†much offers NO SUPPORT for…

Mind

Allowing Hyperlinks in Your WordPress Excerpts

By default, WordPress strips out all the HTML tags from your post excerpts. I needed to allow hyperlinks, but there is a problem when WordPress tries to truncate the post’s content. The wp_trim_excerpt function is what WordPress uses to do all the trimming work, I simply copied the code, modified it, and stuck my new…

Mind

Embed an RSS/ATOM Feed into your WordPress Website

One of my clients needs to pull an RSS feed from a real estate virtual tour provider and display it on one of their pages. I looked into a few plugins and could not find one that was easily customizable. After a quick google search I discovered that WordPress has some built-in functions based off…

Mind

Easily Extended Contact Info in WordPress

I’m working on a project where I need the ability to add “Phone”, “Building”, and “Room” as information a user could add in their profile. I also wanted to remove “AIM”, “Yahoo”, and “Jabber” — none of the users are going to need to fill in that info. You can easily add this code into…