Wordpress Goes Mobile

Mobile Browsing is going more and more popular. So i thought it could be a cooll thing to have a mobile version. I used Xfriuts services wich provide several interesting services for contetn aggregation and distribution but.
Recently I discovered a great plugin from Andy Moore that give your blog a fresh new mobile style without the need to spread another url. It works fine with wordpress 2.3.1 if you make this simple changes to adapt the queries to the new database schema.

at line # 378 you will find

$categories = @$wpdb->get_results(”SELECT * FROM $wpdb->categories ORDER BY cat_name”);

replace with

$categories = @$wpdb->get_results(”SELECT * FROM $wpdb->terms ORDER BY name”);

and at line #385 find:

$cat_drop .= “\n\t<option value=’$category->cat_ID’ $selected>”.ucwords(strtolower($category->cat_name)).”  </option>”;

replace with

$cat_drop .= “\n\t<option value=’$category->term_ID’ $selected>”.ucwords(strtolower($category->cat_name)).”  </option>”;

Everything seems to work fine and you’ll have a brand new mobile browsable blog at your original url.

Thanks Hanrty

Post a Comment

Your email is never published nor shared.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Close
E-mail It